Remove Q_ASSERT's from QMutex autotest
authorJason McDonald <jason.mcdonald@nokia.com>
Fri, 6 May 2011 06:55:31 +0000 (16:55 +1000)
committerRohan McGovern <rohan.mcgovern@nokia.com>
Wed, 18 May 2011 00:46:46 +0000 (10:46 +1000)
commitf872c1a06561bdaa6f05fa33fe0c4b0a42b13179
treec5153f59cc8f2d9701e510e77abbffdd9ef0f64c
parente3ee32848d19c767e51e1ce87f61c9e5c74c1daf
Remove Q_ASSERT's from QMutex autotest

Don't perform actions needed for the test inside Q_ASSERT, because these
actions won't happen in a non-debug build. Instead count the number of
failures and verify that the count is zero at the end of the test.

Change-Id: Ibe0d194111e5247118d59a7760f0946d2c44faf9
Task-number: QTBUG-17582
Reviewed-by: Rohan McGovern
(cherry picked from commit 8d2127d44e6c8af6b041688376de0e5747a1810a)
tests/auto/qmutex/tst_qmutex.cpp