From 9eac5f35d85181b41221dba2d6fdb124e3c11e33 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Mon, 22 Oct 2012 17:50:58 +0200 Subject: [PATCH] Close file in TestQSaveFile::autoFlush() so we can remove it. --- tests/TestQSaveFile.cpp | 1 + 1 file changed, 1 insertion(+) 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)); }