summaryrefslogtreecommitdiffstats
path: root/tests/auto/qxmlinputsource
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-05-03 16:39:50 +1000
committerRohan McGovern <rohan.mcgovern@nokia.com>2011-05-18 10:46:44 +1000
commit803f6117caf1b4896f3ae1493e96f1cd2affd02e (patch)
treebc79a23ee8418003fe4871fb7b7dac12f2ad6e8c /tests/auto/qxmlinputsource
parentf5662adb0368c74e1b0cf634d9792ceee35ed4b8 (diff)
Remove Q_ASSERT from QXmlInputSource autotest
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)
Diffstat (limited to 'tests/auto/qxmlinputsource')
-rw-r--r--tests/auto/qxmlinputsource/tst_qxmlinputsource.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/auto/qxmlinputsource/tst_qxmlinputsource.cpp b/tests/auto/qxmlinputsource/tst_qxmlinputsource.cpp
index c0029f59bd..a2c84cfa50 100644
--- a/tests/auto/qxmlinputsource/tst_qxmlinputsource.cpp
+++ b/tests/auto/qxmlinputsource/tst_qxmlinputsource.cpp
@@ -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;