summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui/painting/qpainter
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/qpainter
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/qpainter')
-rw-r--r--tests/auto/gui/painting/qpainter/tst_qpainter.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/gui/painting/qpainter/tst_qpainter.cpp b/tests/auto/gui/painting/qpainter/tst_qpainter.cpp
index 5440d7783c..4e4e9a9313 100644
--- a/tests/auto/gui/painting/qpainter/tst_qpainter.cpp
+++ b/tests/auto/gui/painting/qpainter/tst_qpainter.cpp
@@ -89,6 +89,7 @@ public:
public slots:
void init();
void cleanup();
+ void cleanupTestCase();
private slots:
void getSetCheck();
void drawPixmap_comp_data();
@@ -364,6 +365,13 @@ void tst_QPainter::cleanup()
{
}
+void tst_QPainter::cleanupTestCase()
+{
+ QFile::remove(QLatin1String("dest.png"));
+ QFile::remove(QLatin1String("expected.png"));
+ QFile::remove(QLatin1String("foo.png"));
+}
+
static const char* const maskSource_data[] = {
"16 13 6 1",
". c None",