Remove Q_ASSERT from QXmlInputSource autotest
authorJason McDonald <jason.mcdonald@nokia.com>
Tue, 3 May 2011 06:39:50 +0000 (16:39 +1000)
committerRohan McGovern <rohan.mcgovern@nokia.com>
Wed, 18 May 2011 00:46:44 +0000 (10:46 +1000)
Report a fatal error in all builds rather than aborting in debug mode
builds only.

Change-Id: I53b348f077c6533433e32bbebd159066a2bc2c37
Task-number: QTBUG-17582
Reviewed-by: Rohan McGovern
(cherry picked from commit 4f818b8bcf51cf9c654edbf319d90f6c77a09b3e)

tests/auto/qxmlinputsource/tst_qxmlinputsource.cpp

index c0029f5..a2c84cf 100644 (file)
@@ -181,9 +181,7 @@ private slots:
             {
                 if(bodyLength == -1)
                 {
-                    Q_ASSERT_X(false, Q_FUNC_INFO,
-                               "No length was specified in the header.");
-                    return;
+                    qFatal("No length was specified in the header.");
                 }
 
                 QDomDocument domDoc;