summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-05-03 07:37:05 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2011-05-04 05:20:34 (GMT)
commitc183540c6c244f327ebd834167799072dcc3b72d (patch)
tree2309ffd954d07298eb23a846907b518081596b5d /tests/auto
parent1ea84cba1f90a9c95c54480117342dba0eae3d2f (diff)
downloadQt-c183540c6c244f327ebd834167799072dcc3b72d.zip
Qt-c183540c6c244f327ebd834167799072dcc3b72d.tar.gz
Qt-c183540c6c244f327ebd834167799072dcc3b72d.tar.bz2
Remove Q_ASSERT's from QXmlStream autotest.
Report a fatal error in all builds rather than only in debug mode builds. Change-Id: I6b3a999dd3ccf00ae66a86b43c125d7082cf0ae5 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/qxmlstream/tst_qxmlstream.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/auto/qxmlstream/tst_qxmlstream.cpp b/tests/auto/qxmlstream/tst_qxmlstream.cpp
index fd2f90e..5324264 100644
--- a/tests/auto/qxmlstream/tst_qxmlstream.cpp
+++ b/tests/auto/qxmlstream/tst_qxmlstream.cpp
@@ -221,8 +221,7 @@ static QString documentElement(const QByteArray &document)
reader.readNext();
}
- Q_ASSERT_X(false, Q_FUNC_INFO,
- qPrintable(QString::fromLatin1("The input %1 didn't contain an element.").arg(QString::fromUtf8(document.constData()))));
+ qFatal("The input %s didn't contain an element", document.constData());
return QString();
}
@@ -461,7 +460,7 @@ public:
}
else
{
- Q_ASSERT_X(false, Q_FUNC_INFO, "The input catalog is invalid.");
+ qFatal("The input catalog is invalid.");
return false;
}
}