Improve auto-test of QFile.
authorFriedemann Kleint <Friedemann.Kleint@digia.com>
Thu, 29 Nov 2012 11:59:35 +0000 (12:59 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 1 Dec 2012 12:51:52 +0000 (13:51 +0100)
commit43ee10518ab9870cc6f39cedc1febf9b7c57ebff
treed0c2ed4d771dec984ebd2bda712068e838724592
parent179a480941ea91324e9e7c044cf74c4f9bd69b8d
Improve auto-test of QFile.

Execute the test in a temporary directory, purge remaining files
except the special readonly-files in cleanup().
Avoid repeated invocation of QFINDTESTDATA() by assigning to
member variables.
Do more checks in rename(), check on contents of file.
Generally, use more QVERIFY2, print error messages.

Task-number: QTBUG-3570
Change-Id: Ibd0e11a361208a716ea3efbcca76adeda70e061a
Reviewed-by: David Faure (KDE) <faure@kde.org>
tests/auto/corelib/io/qfile/tst_qfile.cpp