tst_qapplication: Fix test for configs without process support

Change-Id: If591183cd246b852821fcf8e354f5247aa7ba373
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
This commit is contained in:
Oliver Wolff 2018-05-17 15:23:51 +02:00
parent f86a894527
commit d4349f1acd

View File

@ -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()