QzToolsTest: Close the opened test file before trying to remove it

remotes/origin/Falkon/3.0
Razi Alavizadeh 8 years ago
parent 5043a7675d
commit 33172fcdbe
  1. 1
      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);

Loading…
Cancel
Save