mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
QzToolsTest: Close the opened test file before trying to remove it
This commit is contained in:
parent
5043a7675d
commit
33172fcdbe
|
@ -314,6 +314,7 @@ void QzToolsTest::copyRecursivelyTest()
|
||||||
QFile file(testDir + "-copy/dir1/dir1_2/file1.txt");
|
QFile file(testDir + "-copy/dir1/dir1_2/file1.txt");
|
||||||
file.open(QFile::ReadOnly);
|
file.open(QFile::ReadOnly);
|
||||||
QCOMPARE(file.readAll(), QByteArray("test"));
|
QCOMPARE(file.readAll(), QByteArray("test"));
|
||||||
|
file.close();
|
||||||
|
|
||||||
// Copy to target that already exists
|
// Copy to target that already exists
|
||||||
QCOMPARE(QzTools::copyRecursively(testDir, testDir + "-copy"), false);
|
QCOMPARE(QzTools::copyRecursively(testDir, testDir + "-copy"), false);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user