Remove Q_ASSERT from qxmlquery autotest
authorJason McDonald <jason.mcdonald@nokia.com>
Mon, 9 May 2011 07:40:30 +0000 (17:40 +1000)
committerRohan McGovern <rohan.mcgovern@nokia.com>
Wed, 18 May 2011 01:04:38 +0000 (11:04 +1000)
Report fatal error in all builds not just debug builds.

Change-Id: I6c64435d0382a160ac3602e5243fad9d9585f057
Task-number: QTBUG-17582
Reviewed-by: Rohan McGovern
(cherry picked from commit cb84f3d1a1499485d4c5314b6e94745c6def6888)

tests/auto/qxmlquery/MessageValidator.cpp

index 58b2b31..99a115e 100644 (file)
@@ -51,9 +51,8 @@ MessageValidator::MessageValidator() : m_success(false)
 
 MessageValidator::~MessageValidator()
 {
-    Q_ASSERT_X(m_hasChecked,
-               Q_FUNC_INFO,
-               "You must call success().");
+    if (!m_hasChecked)
+        qFatal("%s: You must call success().", Q_FUNC_INFO);
 }
 
 void MessageValidator::handleMessage(QtMsgType type,