summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-05-09 07:40:30 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2011-05-10 05:58:42 (GMT)
commitcb84f3d1a1499485d4c5314b6e94745c6def6888 (patch)
treeb7905ac8ad142496ecdde38739c5ebba43b9b018 /tests
parent4793c3bd1dfddcc98eae12e5caf29ff6aabd31b2 (diff)
downloadQt-cb84f3d1a1499485d4c5314b6e94745c6def6888.zip
Qt-cb84f3d1a1499485d4c5314b6e94745c6def6888.tar.gz
Qt-cb84f3d1a1499485d4c5314b6e94745c6def6888.tar.bz2
Remove Q_ASSERT from qxmlquery autotest
Report fatal error in all builds not just debug builds. Change-Id: I6c64435d0382a160ac3602e5243fad9d9585f057 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qxmlquery/MessageValidator.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/auto/qxmlquery/MessageValidator.cpp b/tests/auto/qxmlquery/MessageValidator.cpp
index 58b2b31..99a115e 100644
--- a/tests/auto/qxmlquery/MessageValidator.cpp
+++ b/tests/auto/qxmlquery/MessageValidator.cpp
@@ -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,