From 8820f836467e8ef96908b138db6a012b99c8f58c Mon Sep 17 00:00:00 2001 From: Kurt Korbatits Date: Mon, 23 Jan 2012 10:06:38 +1000 Subject: Changed qxmlstream unittest to remove its created file after run. - Removes test.xml after test completed. Change-Id: I548e2d644cca8ae0d30c3002df45cf57433170af Reviewed-by: Kurt Korbatits Reviewed-by: Jason McDonald Reviewed-by: Rohan McGovern --- tests/auto/corelib/xml/qxmlstream/tst_qxmlstream.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/auto/corelib/xml') 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); -- cgit v1.2.3