diff options
author | Kurt Korbatits <kurt.korbatits@nokia.com> | 2012-01-23 10:06:38 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-24 06:58:58 +0100 |
commit | 8820f836467e8ef96908b138db6a012b99c8f58c (patch) | |
tree | c6e6bfe66c967b1c819b14ebf02f24c5b4486f1f /tests | |
parent | 2d1150e6e39bc10f0455754dde1206c72974dab7 (diff) |
Changed qxmlstream unittest to remove its created file after run.
- Removes test.xml after test completed.
Change-Id: I548e2d644cca8ae0d30c3002df45cf57433170af
Reviewed-by: Kurt Korbatits <kurt.korbatits@nokia.com>
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/corelib/xml/qxmlstream/tst_qxmlstream.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/corelib/xml/qxmlstream/tst_qxmlstream.cpp b/tests/auto/corelib/xml/qxmlstream/tst_qxmlstream.cpp index 8cfdaf5d2d..031f95ee8b 100644 --- a/tests/auto/corelib/xml/qxmlstream/tst_qxmlstream.cpp +++ b/tests/auto/corelib/xml/qxmlstream/tst_qxmlstream.cpp @@ -532,6 +532,7 @@ public: private slots: void initTestCase(); + void cleanupTestCase(); void reportFailures() const; void reportFailures_data(); void checkBaseline() const; @@ -589,6 +590,11 @@ void tst_QXmlStream::initTestCase() QVERIFY(reader.parse(&source, false)); } +void tst_QXmlStream::cleanupTestCase() +{ + QFile::remove(QLatin1String("test.xml")); +} + void tst_QXmlStream::reportFailures() const { QFETCH(bool, isError); |