From: Jason McDonald Date: Mon, 9 May 2011 07:40:30 +0000 (+1000) Subject: Remove Q_ASSERT from qxmlquery autotest X-Git-Tag: 1.0_branch~86^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3e38dce73e7fd3534af0ffa19e92754e84b6cc53;p=profile%2Fivi%2Fqtxmlpatterns.git 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) --- 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,