diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2010-09-29 03:32:27 (GMT) |
---|---|---|
committer | Rohan McGovern <rohan.mcgovern@nokia.com> | 2010-09-29 03:37:21 (GMT) |
commit | 8bb62d3194a4de863b941c1f3716c66296d3eb5a (patch) | |
tree | 5e92d08e6db3d8ce6cf80f8aec3bc279046906bb /tests/auto/selftests | |
parent | e364e7c006d27c030c8d02d49fece5e6130ee84e (diff) | |
download | Qt-8bb62d3194a4de863b941c1f3716c66296d3eb5a.zip Qt-8bb62d3194a4de863b941c1f3716c66296d3eb5a.tar.gz Qt-8bb62d3194a4de863b941c1f3716c66296d3eb5a.tar.bz2 |
Fixed failure of benchlibcallgrind selftest on some platforms.
This test may be sensitive to the particular toolchain and valgrind
versions on the test machine. We'll work around that.
Diffstat (limited to 'tests/auto/selftests')
-rw-r--r-- | tests/auto/selftests/tst_selftests.cpp | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/tests/auto/selftests/tst_selftests.cpp b/tests/auto/selftests/tst_selftests.cpp index 0818b4c..4ee2996 100644 --- a/tests/auto/selftests/tst_selftests.cpp +++ b/tests/auto/selftests/tst_selftests.cpp @@ -339,12 +339,22 @@ void tst_Selftests::doRunSubTest(QString const& subdir, QString const& logger, Q const QByteArray err(proc.readAllStandardError()); - /* Some platforms decides to output a message for uncaught exceptions. For instance, - * this is what windows platforms says: - * "This application has requested the Runtime to terminate it in an unusual way. - * Please contact the application's support team for more information." */ - if(subdir != QLatin1String("exceptionthrow") && subdir != QLatin1String("fetchbogus") - && subdir != QLatin1String("xunit")) + /* + Some tests may output unpredictable strings to stderr, which we'll ignore. + + For instance, uncaught exceptions on Windows might say (depending on Windows + version and JIT debugger settings): + "This application has requested the Runtime to terminate it in an unusual way. + Please contact the application's support team for more information." + + Also, tests which use valgrind may generate warnings if the toolchain is + newer than the valgrind version, such that valgrind can't understand the + debug information on the binary. + */ + if (subdir != QLatin1String("exceptionthrow") + && subdir != QLatin1String("fetchbogus") + && subdir != QLatin1String("xunit") + && subdir != QLatin1String("benchlibcallgrind")) QVERIFY2(err.isEmpty(), err.constData()); QList<QByteArray> res = splitLines(out); |