diff --git a/tests/TestQSaveFile.cpp b/tests/TestQSaveFile.cpp index 1e0548d0b..a796bbe5b 100644 --- a/tests/TestQSaveFile.cpp +++ b/tests/TestQSaveFile.cpp @@ -102,6 +102,7 @@ void TestQSaveFile::autoFlush() QFile reader(targetFile); QVERIFY(reader.open(QIODevice::ReadOnly)); QCOMPARE(QString::fromLatin1(reader.readAll().constData()), QString::fromLatin1("Auto-flush.")); + reader.close(); QVERIFY(QFile::remove(targetFile)); }