diff options
author | Kurt Korbatits <kurt.korbatits@nokia.com> | 2012-01-23 11:58:00 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-24 06:59:21 +0100 |
commit | 746c148c95f65c305c2b9ff27ca4a597a72cc6aa (patch) | |
tree | 39a383a7091f822820af4c2e5698ce8bf1afef20 /tests | |
parent | f5ef6bc58a3fd01e3d0b5ba97b4587b8c591567d (diff) |
Changed qnetworkdiskcache unittest to cleanup test directory.
- Remove foo directory tree after run.
Change-Id: I2d554b4c64fc7162c7717c840534cf77f5e744d0
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/network/access/qnetworkdiskcache/tst_qnetworkdiskcache.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/network/access/qnetworkdiskcache/tst_qnetworkdiskcache.cpp b/tests/auto/network/access/qnetworkdiskcache/tst_qnetworkdiskcache.cpp index 89102892fd..ac7f368002 100644 --- a/tests/auto/network/access/qnetworkdiskcache/tst_qnetworkdiskcache.cpp +++ b/tests/auto/network/access/qnetworkdiskcache/tst_qnetworkdiskcache.cpp @@ -186,6 +186,9 @@ void tst_QNetworkDiskCache::initTestCase() // It is only called once. void tst_QNetworkDiskCache::cleanupTestCase() { + QDir workingDir("foo"); + if (workingDir.exists()) + workingDir.removeRecursively(); } // This will be called before each test function is executed. |