Remove Q_ASSERT in gestures autotest
authorJason McDonald <jason.mcdonald@nokia.com>
Wed, 4 May 2011 06:53:16 +0000 (16:53 +1000)
committerRohan McGovern <rohan.mcgovern@nokia.com>
Wed, 18 May 2011 00:46:45 +0000 (10:46 +1000)
commitd9d1e72d766456512ec45e867f7a8f8be888a57c
tree02739c5a1eda4c7ad05573b68cd76959ec541f5c
parent80384827e0d0328e6bb8e18e8f321671e045eea7
Remove Q_ASSERT in gestures autotest

Rather than aborting on a bad gesture event in debug builds and ignoring
the error in release builds, record a count of bad events and fail the
test if the count is non-zero at the end of the test function.

Change-Id: I6ddd46a5a656185c13eae4bbbb496b986a0c92f6
Task-number: QTBUG-17582
Reviewed-by: Rohan McGovern
(cherry picked from commit 5953d930bc07fa6734a11d053d26a3f80e9c1e89)
tests/auto/gestures/tst_gestures.cpp