diff options
author | Kurt Korbatits <kurt.korbatits@nokia.com> | 2012-01-23 10:45:21 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-24 06:59:04 +0100 |
commit | 5f22288346fd69ecaa0128d83bf87d011d1572b3 (patch) | |
tree | 0ff5b864e4d867523e3cf3a34e0771a15ec7b3c8 /tests | |
parent | 8820f836467e8ef96908b138db6a012b99c8f58c (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')
-rw-r--r-- | tests/auto/gui/image/qpixmap/tst_qpixmap.cpp | 6 |
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 ); |