Remove Q_ASSERT's from modeltest
authorJason McDonald <jason.mcdonald@nokia.com>
Thu, 5 May 2011 01:58:24 +0000 (11:58 +1000)
committerRohan McGovern <rohan.mcgovern@nokia.com>
Wed, 18 May 2011 00:46:46 +0000 (10:46 +1000)
commit97e0db61c788a59bff48e33800802d4c4a0b0e70
tree6442768bd3c9c3b6de300cd595c7e4677b81cba3
parent16c866533b887dff4067484f05be02377d42955b
Remove Q_ASSERT's from modeltest

Rather than aborting in debug builds and ignoring the failures in
release builds, report specific warnings on each failure, count the
failures, and fail the test if the failure counts are non-zero at the
end of the test.

The same change is also made for a QCOMPARE that appeared
inappropriately inside a helper class.  QCOMPARE may only appear
directly in a test function.

Change-Id: I81f0ce80512fa72c67f5aa72c0511a4b650d5d20
Task-number: QTBUG-17582
Reviewed-by: Rohan McGovern
(cherry picked from commit 11254ff409395b67cb28453b3c069860bc28c14d)
tests/auto/modeltest/tst_modeltest.cpp