diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2012-03-01 15:14:18 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-05 05:32:03 +0100 |
commit | 0862d7f78af978cf513097b3bdc33cd8096dee75 (patch) | |
tree | 64fd79f9b7611d117ef7f43bab52ebbf87a0b4a0 /tests/auto/testlib/selftests/counting | |
parent | 33f82d5b4e24885e4c6cad0a44e058b44d916e14 (diff) |
testlib: Make verbose2 selftest use QCOMPARE as well as QVERIFY.
The verbose output for QCOMPARE is not very helpful. Make the verbose2
selftest (which reuses the counting selftest) demonstrate this, so that
a future commit can demonstrate improvement.
Change-Id: I6b3bc8f5199e984aa11d0a67b76a8c916be86380
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto/testlib/selftests/counting')
-rw-r--r-- | tests/auto/testlib/selftests/counting/tst_counting.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/testlib/selftests/counting/tst_counting.cpp b/tests/auto/testlib/selftests/counting/tst_counting.cpp index fa61fce173..9c3dd48015 100644 --- a/tests/auto/testlib/selftests/counting/tst_counting.cpp +++ b/tests/auto/testlib/selftests/counting/tst_counting.cpp @@ -109,6 +109,7 @@ void tst_Counting::helper() switch (result) { case Pass: QVERIFY(true); + QCOMPARE(2 + 1, 3); break; case Fail: QVERIFY(false); |