diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-04-14 03:58:26 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-04-14 03:59:12 (GMT) |
commit | 974eac3542604d174d7955e15072750f1e852263 (patch) | |
tree | fc415aff092ab4254ab0e092ee145476f1cb29fa /tests/auto/declarative | |
parent | 7d1227e166d97399b00a5e188dca14ceb1702884 (diff) | |
download | Qt-974eac3542604d174d7955e15072750f1e852263.zip Qt-974eac3542604d174d7955e15072750f1e852263.tar.gz Qt-974eac3542604d174d7955e15072750f1e852263.tar.bz2 |
Improve test failure message
Diffstat (limited to 'tests/auto/declarative')
-rw-r--r-- | tests/auto/declarative/examples/tst_examples.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/declarative/examples/tst_examples.cpp b/tests/auto/declarative/examples/tst_examples.cpp index abb2b93..67b29dd 100644 --- a/tests/auto/declarative/examples/tst_examples.cpp +++ b/tests/auto/declarative/examples/tst_examples.cpp @@ -296,7 +296,8 @@ void tst_examples::examples() for (int ii = 0; ii < tests.count(); ++ii) { if (tests.at(ii).result != Example::Pass) qWarning() << tests.at(ii).file << ":failed"; - QVERIFY(tests.at(ii).result == Example::Pass); + if (tests.at(ii).result != Example::Pass) + QFAIL(qPrintable(tests.at(ii).file)); } #else |