From 33172fcdbe7af5968ad76eaa4537c7b6d72f5125 Mon Sep 17 00:00:00 2001 From: Razi Alavizadeh Date: Thu, 26 Apr 2018 13:50:05 +0430 Subject: [PATCH] QzToolsTest: Close the opened test file before trying to remove it --- autotests/qztoolstest.cpp | 1 + 1 file changed, 1 insertion(+) 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);