summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-04-14 03:58:26 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-04-14 03:59:12 (GMT)
commit974eac3542604d174d7955e15072750f1e852263 (patch)
treefc415aff092ab4254ab0e092ee145476f1cb29fa /tests
parent7d1227e166d97399b00a5e188dca14ceb1702884 (diff)
downloadQt-974eac3542604d174d7955e15072750f1e852263.zip
Qt-974eac3542604d174d7955e15072750f1e852263.tar.gz
Qt-974eac3542604d174d7955e15072750f1e852263.tar.bz2
Improve test failure message
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/declarative/examples/tst_examples.cpp3
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