diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2009-04-21 22:56:00 (GMT) |
---|---|---|
committer | Rohan McGovern <rohan.mcgovern@nokia.com> | 2009-04-21 22:56:00 (GMT) |
commit | 0ded26da02d0786b08e2bf52a7e68abf7c4c8701 (patch) | |
tree | cf641dda6799809b4a7ff47e710a61e6c57d9162 /src/testlib | |
parent | 07703ade86edcd6565c373f63e34306209d1a90a (diff) | |
download | Qt-0ded26da02d0786b08e2bf52a7e68abf7c4c8701.zip Qt-0ded26da02d0786b08e2bf52a7e68abf7c4c8701.tar.gz Qt-0ded26da02d0786b08e2bf52a7e68abf7c4c8701.tar.bz2 |
Fixes unit tests always giving 0 exit code when Qt is configured with
`-developer-build'.
This was an undocumented hack to make it easier for our autotest scripts
to detect crashes in unit tests. Going forward, it should not be
required.
Reviewed-by: Shane Bradley
Acked-by: Jesper Thomschütz
Diffstat (limited to 'src/testlib')
-rw-r--r-- | src/testlib/qtestcase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testlib/qtestcase.cpp b/src/testlib/qtestcase.cpp index f17d95d..b5200dc 100644 --- a/src/testlib/qtestcase.cpp +++ b/src/testlib/qtestcase.cpp @@ -1481,7 +1481,7 @@ int QTest::qExec(QObject *testObject, int argc, char **argv) } #endif -#if defined(QTEST_NOEXITCODE) || (defined(QT_BUILD_INTERNAL) && !defined(QTEST_FORCE_EXITCODE)) +#if defined(QTEST_NOEXITCODE) return 0; #else |