From 746c148c95f65c305c2b9ff27ca4a597a72cc6aa Mon Sep 17 00:00:00 2001 From: Kurt Korbatits Date: Mon, 23 Jan 2012 11:58:00 +1000 Subject: Changed qnetworkdiskcache unittest to cleanup test directory. - Remove foo directory tree after run. Change-Id: I2d554b4c64fc7162c7717c840534cf77f5e744d0 Reviewed-by: Kurt Korbatits Reviewed-by: Jason McDonald Reviewed-by: Rohan McGovern --- tests/auto/network/access/qnetworkdiskcache/tst_qnetworkdiskcache.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/auto/network/access/qnetworkdiskcache/tst_qnetworkdiskcache.cpp') 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. -- cgit v1.2.3