FIX: Don't switch to hostVT during testing. 80/50180/1
authorDariusz Michaluk <d.michaluk@samsung.com>
Mon, 26 Oct 2015 13:36:00 +0000 (14:36 +0100)
committerDariusz Michaluk <d.michaluk@samsung.com>
Mon, 26 Oct 2015 13:46:29 +0000 (14:46 +0100)
[Feature]       FIX: Don't switch to hostVT during testing
[Cause]         N/A
[Solution]      N/A
[Verification]  Build, run tests.

Change-Id: Ic02c2387b15a5a162e88806c2dcc5ec2c82e67b0

server/zones-manager.cpp
tests/unit_tests/configs/test-daemon.conf.in

index 7a2bf11..82c5e68 100644 (file)
@@ -392,8 +392,10 @@ void ZonesManager::focusInternal(Zones::iterator iter)
     // assume mutex is locked
     if (iter == mZones.end()) {
         if (!mActiveZoneId.empty()) {
-            LOGI("Focus to: host");
-            utils::activateVT(mConfig.hostVT);
+            if (mConfig.hostVT > 0) {
+                LOGI("Focus to: host");
+                utils::activateVT(mConfig.hostVT);
+            }
             mActiveZoneId.clear();
         }
         return;
index 2ed411b..247bf1f 100644 (file)
@@ -7,7 +7,7 @@
     "zoneTemplateDir" : "@VSM_TEST_CONFIG_INSTALL_DIR@/templates/",
     "runMountPointPrefix" : "",
     "defaultId" : "",
-    "hostVT" : 2,
+    "hostVT" : -1,
     "availableVTs" : [],
     "inputConfig" : {"enabled" : false,
                      "device" : "gpio-keys.4",