From d4349f1acd0fcb7665cbb957dc0c77d4ca30470a Mon Sep 17 00:00:00 2001 From: Oliver Wolff Date: Thu, 17 May 2018 15:23:51 +0200 Subject: tst_qapplication: Fix test for configs without process support Change-Id: If591183cd246b852821fcf8e354f5247aa7ba373 Reviewed-by: Maurice Kalinowski --- tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp') diff --git a/tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp b/tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp index 3b8aa8f146..56054803e3 100644 --- a/tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp +++ b/tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp @@ -189,9 +189,11 @@ public: void tst_QApplication::initTestCase() { +#if QT_CONFIG(process) // chdir to our testdata path and execute helper apps relative to that. const QString testdataDir = QFileInfo(QFINDTESTDATA("desktopsettingsaware")).absolutePath(); QVERIFY2(QDir::setCurrent(testdataDir), qPrintable("Could not chdir to " + testdataDir)); +#endif } void tst_QApplication::sendEventsOnProcessEvents() -- cgit v1.2.3