diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2009-05-06 00:31:28 (GMT) |
---|---|---|
committer | Rohan McGovern <rohan.mcgovern@nokia.com> | 2009-05-06 01:04:29 (GMT) |
commit | 2d194009379a4e199ec246ca053ee97ee733482f (patch) | |
tree | 2ed191e8864508e957c80ed455be7e8e62e7c67a /tests/auto/selftests/badxml/tst_badxml.cpp | |
parent | d32782a91982c50c72aed170f3bab2024ff8b4f3 (diff) | |
download | Qt-2d194009379a4e199ec246ca053ee97ee733482f.zip Qt-2d194009379a4e199ec246ca053ee97ee733482f.tar.gz Qt-2d194009379a4e199ec246ca053ee97ee733482f.tar.bz2 |
Made tst_Selftests::checkXML actually test the new (Qt 4.6) test logger.
Previously `-flush' was always passed to the child process, meaning the
old (Qt 4.5) test logger was used exclusively in this test, hiding bugs.
Diffstat (limited to 'tests/auto/selftests/badxml/tst_badxml.cpp')
-rw-r--r-- | tests/auto/selftests/badxml/tst_badxml.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/selftests/badxml/tst_badxml.cpp b/tests/auto/selftests/badxml/tst_badxml.cpp index 6b2e4c4..fa5b717 100644 --- a/tests/auto/selftests/badxml/tst_badxml.cpp +++ b/tests/auto/selftests/badxml/tst_badxml.cpp @@ -58,6 +58,8 @@ private slots: void badMessage() const; void badMessage_data() const; + void failWithNoFile() const; + public: static QList<QByteArray> const& badStrings(); }; @@ -116,6 +118,11 @@ void tst_BadXml::badDataTag_data() const } } +void tst_BadXml::failWithNoFile() const +{ + QTest::qFail("failure message", 0, 0); +} + /* Outputs a message containing a bad string. */ |