diff --git a/autotests/qztoolstest.cpp b/autotests/qztoolstest.cpp index 5d705f6c9..923bd86db 100644 --- a/autotests/qztoolstest.cpp +++ b/autotests/qztoolstest.cpp @@ -314,6 +314,7 @@ void QzToolsTest::copyRecursivelyTest() QFile file(testDir + "-copy/dir1/dir1_2/file1.txt"); file.open(QFile::ReadOnly); QCOMPARE(file.readAll(), QByteArray("test")); + file.close(); // Copy to target that already exists QCOMPARE(QzTools::copyRecursively(testDir, testDir + "-copy"), false);