1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 09:42:10 +02:00

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

This commit is contained in:
Razi Alavizadeh 2018-04-26 13:50:05 +04:30
parent 5043a7675d
commit 33172fcdbe

View File

@ -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);