summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobert Griebl <robert.griebl@qt.io>2023-12-07 02:55:15 +0100
committerRobert Griebl <robert.griebl@qt.io>2023-12-07 17:32:46 +0100
commit92cfa58abb85c875d07d4ab1256a85f87b57ae18 (patch)
tree104956c1d6d1e1586be44cecd52acabdaccb3f81 /tests
parent945ec6378cbe8fbbdc9f29816f312489c1866484 (diff)
Fix the controller test to also work in single-process mode
Change-Id: I60bdb3434d496f5841b3bc0b47eb8559dbd4b7f9 Reviewed-by: Bernd Weimer <bernd.weimer@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/controller-tool/tst_controller-tool.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/controller-tool/tst_controller-tool.cpp b/tests/auto/controller-tool/tst_controller-tool.cpp
index 7ab8e788..76c99d9f 100644
--- a/tests/auto/controller-tool/tst_controller-tool.cpp
+++ b/tests/auto/controller-tool/tst_controller-tool.cpp
@@ -393,7 +393,10 @@ void tst_ControllerTool::startStop()
}
QTRY_VERIFY(app->runState() == Am::NotRunning);
{
- ControllerTool ctrl({ qSL("debug-application"), qSL("FOO=BAR"), app->id() });
+ // debug-application does not work in single-process mode
+ bool sp = ApplicationManager::instance()->isSingleProcess();
+ ControllerTool ctrl(sp ? QStringList { qSL("start-application"), app->id() }
+ : QStringList { qSL("debug-application"), qSL("FOO=BAR"), app->id() });
QVERIFY2(ctrl.call(), ctrl.failure);
}
QTRY_VERIFY(app->runState() == Am::Running);