diff options
author | Tatiana Borisova <tatiana.borisova@qt.io> | 2022-01-21 16:25:55 +0200 |
---|---|---|
committer | Tatiana Borisova <tatiana.borisova@qt.io> | 2022-01-27 21:35:58 +0200 |
commit | e76d27d3ed2475169166a8666a3d90a82444fdbf (patch) | |
tree | de5ab493fb480b2197a0b647f3b1c3659f975287 /tests/auto/testlib/selftests | |
parent | 75082c9f20271eb7916a7e8e85d2e58b8e4b1392 (diff) |
Exclude tst_selftests when feature process is disabled
- It should not be built for systems without process feature.
Task-number: QTBUG-99123
Pick-to: 6.2 6.3
Change-Id: I71caa59c2168435894c7d1afcc8226e44178439f
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'tests/auto/testlib/selftests')
-rw-r--r-- | tests/auto/testlib/selftests/tst_selftests.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/auto/testlib/selftests/tst_selftests.cpp b/tests/auto/testlib/selftests/tst_selftests.cpp index 8aad22dec8..b706b41905 100644 --- a/tests/auto/testlib/selftests/tst_selftests.cpp +++ b/tests/auto/testlib/selftests/tst_selftests.cpp @@ -29,7 +29,7 @@ #include <QtCore/QCoreApplication> -#if QT_CONFIG(process) +QT_REQUIRE_CONFIG(process); #if QT_CONFIG(temporaryfile) # define USE_DIFF @@ -1216,15 +1216,10 @@ SCENARIO("Test output of the loggers is as expected") } } -#endif // QT_CONFIG(process) - // ----------------------- Entrypoint ----------------------- int main(int argc, char **argv) { -#if !QT_CONFIG(process) - return 0; -#else std::vector<const char*> args(argv, argv + argc); static auto kRebaseArgument = "--rebase"; @@ -1272,6 +1267,5 @@ int main(int argc, char **argv) } return result; -#endif } |