summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui/painting/qpainterpath
diff options
context:
space:
mode:
authorKurt Korbatits <kurt.korbatits@nokia.com>2012-01-23 10:53:15 +1000
committerQt by Nokia <qt-info@nokia.com>2012-01-24 06:59:09 +0100
commit1509739d4328d9eb049b899e24546821567005bf (patch)
treee15a29a412d5fd4fcb14ffcc65503eba2e1bbe2a /tests/auto/gui/painting/qpainterpath
parent5f22288346fd69ecaa0128d83bf87d011d1572b3 (diff)
Changed painting unittests to remove created files after run.
- qpainter cleans up temp files dest.png, expected.png and foo.png - qpainterpath clean up temp file data - qprinter cleans up silly, out1.ps, out2.ps, test.pdf and file.pdf Change-Id: Id434bea0bae5b970355206a250456e4beeca8060 Reviewed-by: Kurt Korbatits <kurt.korbatits@nokia.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
Diffstat (limited to 'tests/auto/gui/painting/qpainterpath')
-rw-r--r--tests/auto/gui/painting/qpainterpath/tst_qpainterpath.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/auto/gui/painting/qpainterpath/tst_qpainterpath.cpp b/tests/auto/gui/painting/qpainterpath/tst_qpainterpath.cpp
index d745c8e45d..d30ed8674f 100644
--- a/tests/auto/gui/painting/qpainterpath/tst_qpainterpath.cpp
+++ b/tests/auto/gui/painting/qpainterpath/tst_qpainterpath.cpp
@@ -54,7 +54,8 @@ class tst_QPainterPath : public QObject
Q_OBJECT
public:
-
+public slots:
+ void cleanupTestCase();
private slots:
void getSetCheck();
void swap();
@@ -115,6 +116,11 @@ private slots:
void lineWithinBounds();
};
+void tst_QPainterPath::cleanupTestCase()
+{
+ QFile::remove(QLatin1String("data"));
+}
+
// Testing get/set functions
void tst_QPainterPath::getSetCheck()
{