summaryrefslogtreecommitdiffstats
path: root/tests/auto/qfile/tst_qfile.cpp
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@trolltech.com>2009-08-06 17:20:16 (GMT)
committerJoerg Bornemann <joerg.bornemann@trolltech.com>2009-08-06 17:20:16 (GMT)
commit281d3dc3cfff77c185912365130af36f8be632d3 (patch)
treef14ddd03a026d5d3525ce680c4b3a1d85a293b01 /tests/auto/qfile/tst_qfile.cpp
parent16b3825bc4ec3335bac412e7070b12f7340477e0 (diff)
downloadQt-281d3dc3cfff77c185912365130af36f8be632d3.zip
Qt-281d3dc3cfff77c185912365130af36f8be632d3.tar.gz
Qt-281d3dc3cfff77c185912365130af36f8be632d3.tar.bz2
tst_QFile::copyAfterFail fixed on Windows
We cannot remove a file that's still opened. Reviewed-by: ossi
Diffstat (limited to 'tests/auto/qfile/tst_qfile.cpp')
-rw-r--r--tests/auto/qfile/tst_qfile.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qfile/tst_qfile.cpp b/tests/auto/qfile/tst_qfile.cpp
index 66f29dd..249b702 100644
--- a/tests/auto/qfile/tst_qfile.cpp
+++ b/tests/auto/qfile/tst_qfile.cpp
@@ -915,6 +915,7 @@ void tst_QFile::copyAfterFail()
QVERIFY(file1.open(QIODevice::ReadWrite) && "(test-precondition)");
QVERIFY(file2.open(QIODevice::ReadWrite) && "(test-precondition)");
+ file2.close();
QVERIFY(!QFile::exists("copied-file-1.txt") && "(test-precondition)");
QVERIFY(!QFile::exists("copied-file-2.txt") && "(test-precondition)");