Close file in TestQSaveFile::autoFlush() so we can remove it.

This commit is contained in:
Felix Geyer 2012-10-22 17:50:58 +02:00
parent 47d3c7e05a
commit 9eac5f35d8

View File

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