diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2011-05-18 10:45:40 +1000 |
---|---|---|
committer | Rohan McGovern <rohan.mcgovern@nokia.com> | 2011-05-18 11:04:38 +1000 |
commit | e5bd6e8e4a6764b989b37d083aeda31b44d73ce1 (patch) | |
tree | f92d7fb3a4d9f97e23fd41c34b94d56a789ce557 /tests/auto/xmlpatternsxqts | |
parent | 8e5afca78e74af708469ca6a7520193376ecf0d8 (diff) | |
download | qtxmlpatterns-e5bd6e8e4a6764b989b37d083aeda31b44d73ce1.tar.gz |
Reduce usage of Q_ASSERT in autotests.
Using Q_ASSERT does nothing in release-mode builds, and in debug builds
it causes tests to terminate prematurely. It is much better to use
QVERIFY or QCOMPARE.
Task-number: QTBUG-17582
Reviewed-by: Rohan McGovern
(cherry picked from commit 3475168550c1a804f04f2a4edfeb30c04cd36551)
Diffstat (limited to 'tests/auto/xmlpatternsxqts')
-rw-r--r-- | tests/auto/xmlpatternsxqts/tst_suitetest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/xmlpatternsxqts/tst_suitetest.cpp b/tests/auto/xmlpatternsxqts/tst_suitetest.cpp index 62cc4bb..ff6121f 100644 --- a/tests/auto/xmlpatternsxqts/tst_suitetest.cpp +++ b/tests/auto/xmlpatternsxqts/tst_suitetest.cpp @@ -108,7 +108,7 @@ void tst_SuiteTest::runTestSuite() const /* Run the tests, and serialize the result(as according to XQTSResult.xsd) to standard out. */ TestSuiteResult *const result = ts->runSuite(); - Q_ASSERT(result); + QVERIFY(result); QFile out(m_candidateBaseline); QVERIFY(out.open(QIODevice::WriteOnly)); |