summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui/image
diff options
context:
space:
mode:
authorKurt Korbatits <kurt.korbatits@nokia.com>2012-01-23 10:45:21 +1000
committerQt by Nokia <qt-info@nokia.com>2012-01-24 06:59:04 +0100
commit5f22288346fd69ecaa0128d83bf87d011d1572b3 (patch)
tree0ff5b864e4d867523e3cf3a34e0771a15ec7b3c8 /tests/auto/gui/image
parent8820f836467e8ef96908b138db6a012b99c8f58c (diff)
Changed qpixmap unittest to remove created file after run.
- Removes temp_image.png after test run. Change-Id: I0b233609c2bbf57151cf173181a40738d934f0ec 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/auto/gui/image')
-rw-r--r--tests/auto/gui/image/qpixmap/tst_qpixmap.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/gui/image/qpixmap/tst_qpixmap.cpp b/tests/auto/gui/image/qpixmap/tst_qpixmap.cpp
index 63cf63ffcc..a39951e346 100644
--- a/tests/auto/gui/image/qpixmap/tst_qpixmap.cpp
+++ b/tests/auto/gui/image/qpixmap/tst_qpixmap.cpp
@@ -79,6 +79,7 @@ public:
public slots:
void init();
void cleanup();
+ void cleanupTestCase();
private slots:
void swap();
@@ -215,6 +216,11 @@ void tst_QPixmap::cleanup()
{
}
+void tst_QPixmap::cleanupTestCase()
+{
+ QFile::remove(QLatin1String("temp_image.png"));
+}
+
void tst_QPixmap::swap()
{
QPixmap p1( 16, 16 ), p2( 32, 32 );