Remove Q_ASSERT's from QObject autotest.
authorJason McDonald <jason.mcdonald@nokia.com>
Tue, 3 May 2011 01:59:05 +0000 (11:59 +1000)
committerRohan McGovern <rohan.mcgovern@nokia.com>
Wed, 18 May 2011 00:46:42 +0000 (10:46 +1000)
commit982405f2d0f233872d83579893f07699810050bf
treeb3d2e00f4b331bec027e4f48956e19036293a0a1
parentd0d393d86f3cc0300fe6329733b409e713263cb3
Remove Q_ASSERT's from QObject autotest.

The Receiver class has two slots that aren't meant to get called during
the test (they're there to catch broken parsing of slot names).  Rather
than asserting when one of them gets called, which does nothing in a
release mode build, this commit makes the slots record the number of
times they were called (as for the other slots in the test) and fails
the test gracefully if either of those slots was called.

Change-Id: Ia0393026cb96ffdc6190b5e7bd951f75d231b11e
Task-number: QTBUG-17582
Reviewed-by: Rohan McGovern
(cherry picked from commit 7bd6ca895e5fa4de197d9d7bf2e7b578c01c3c2a)
tests/auto/qobject/tst_qobject.cpp