diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2011-05-03 06:39:50 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2011-05-04 04:40:24 (GMT) |
commit | 4f818b8bcf51cf9c654edbf319d90f6c77a09b3e (patch) | |
tree | eee5c1970cd6822c158209737623f4319ee145d5 /tests/auto/qxmlinputsource | |
parent | 22aa68ecec96da4d14a4c9fe2f6e4a337b13b4a3 (diff) | |
download | Qt-4f818b8bcf51cf9c654edbf319d90f6c77a09b3e.zip Qt-4f818b8bcf51cf9c654edbf319d90f6c77a09b3e.tar.gz Qt-4f818b8bcf51cf9c654edbf319d90f6c77a09b3e.tar.bz2 |
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
Diffstat (limited to 'tests/auto/qxmlinputsource')
-rw-r--r-- | tests/auto/qxmlinputsource/tst_qxmlinputsource.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/auto/qxmlinputsource/tst_qxmlinputsource.cpp b/tests/auto/qxmlinputsource/tst_qxmlinputsource.cpp index c0029f5..a2c84cf 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; |