Remove Q_ASSERT's from qreadwritelock autotest
authorJason McDonald <jason.mcdonald@nokia.com>
Mon, 9 May 2011 03:46:32 +0000 (13:46 +1000)
committerRohan McGovern <rohan.mcgovern@nokia.com>
Wed, 18 May 2011 00:46:47 +0000 (10:46 +1000)
commit8094e93e081ac91bc6480800c06c52f52252f439
tree4b85802f4edcadc79adb7531896cec04b20a3491
parent179954667524ee3d6bd472605cf2f48326826fa8
Remove Q_ASSERT's from qreadwritelock autotest

The tryWriteLock testfunction didn't do anything useful in non-debug
builds, due to the thread having the important code inside Q_ASSERT's,
which are no-ops in non-debug builds.  This commit removes the
Q_ASSERT's, counts the number of failures in the thread and fails the
test if there are any failures recorded.

Change-Id: I4750f66eeba22ab51ba348ebc06704052421f1ae
Task-number: QTBUG-17582
Reviewed-by: Rohan McGovern
(cherry picked from commit 00f724c943b83f10f9ca9475570708536947538e)
tests/auto/qreadwritelock/tst_qreadwritelock.cpp