diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-08-24 15:50:23 +0200 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-08-25 09:13:46 +0200 |
commit | f325bac02ebc0bcfa17a33c9d688f0315e66ef48 (patch) | |
tree | 3cd53d0a1ad72eca067ae29b5ced25977a48fcee /tests/auto/corelib/kernel/qobject | |
parent | 0871a7b5a282e1e665aafc61e00ff131a4adb540 (diff) |
tst_qobject: Enable build with CMake
Change-Id: Ia2b324d0e5aa88ea9a71bb040a740f359e11f2ac
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tests/auto/corelib/kernel/qobject')
-rw-r--r-- | tests/auto/corelib/kernel/qobject/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/auto/corelib/kernel/qobject/tst_qobject.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/corelib/kernel/qobject/CMakeLists.txt b/tests/auto/corelib/kernel/qobject/CMakeLists.txt index ea894ff3d3..47179410b0 100644 --- a/tests/auto/corelib/kernel/qobject/CMakeLists.txt +++ b/tests/auto/corelib/kernel/qobject/CMakeLists.txt @@ -17,3 +17,4 @@ qt_add_test(tst_qobject ## Scopes: ##################################################################### add_subdirectory(signalbug) +add_dependencies(tst_qobject signalbug_helper) # special case diff --git a/tests/auto/corelib/kernel/qobject/tst_qobject.cpp b/tests/auto/corelib/kernel/qobject/tst_qobject.cpp index 83ec36253a..c84c812823 100644 --- a/tests/auto/corelib/kernel/qobject/tst_qobject.cpp +++ b/tests/auto/corelib/kernel/qobject/tst_qobject.cpp @@ -2976,7 +2976,7 @@ void tst_QObject::recursiveSignalEmission() #else QProcess proc; // signalbug helper app should always be next to this test binary - const QString path = QStringLiteral("signalbug_helper"); + const QString path = QCoreApplication::applicationDirPath() + QDir::separator() + QStringLiteral("signalbug_helper"); proc.start(path); QVERIFY2(proc.waitForStarted(), qPrintable(QString::fromLatin1("Cannot start '%1': %2").arg(path, proc.errorString()))); QVERIFY(proc.waitForFinished()); |