diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2011-05-09 17:40:30 +1000 |
---|---|---|
committer | Rohan McGovern <rohan.mcgovern@nokia.com> | 2011-05-18 11:04:38 +1000 |
commit | 3e38dce73e7fd3534af0ffa19e92754e84b6cc53 (patch) | |
tree | ad5e457232912f656214b24b69406755593e5387 /tests | |
parent | bdffdef0d04e1cd83cf101dbb86462f0de85ea8c (diff) | |
download | qtxmlpatterns-3e38dce73e7fd3534af0ffa19e92754e84b6cc53.tar.gz |
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
(cherry picked from commit cb84f3d1a1499485d4c5314b6e94745c6def6888)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qxmlquery/MessageValidator.cpp | 5 |
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, |