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)
This commit is contained in:
Jason McDonald 2011-05-03 16:39:50 +10:00 committed by Rohan McGovern
parent f5662adb03
commit 803f6117ca

View 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;