Prevent QFileInfo test from leaving temporary files behind.
authorJason McDonald <jason.mcdonald@nokia.com>
Tue, 3 Jan 2012 04:02:47 +0000 (14:02 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 5 Jan 2012 02:49:45 +0000 (03:49 +0100)
commitca81ec03d69817e838c7758844184447f530e0f6
tree898948d4493c3b5ae19ad5cbef583140174f4ab7
parent77ddb00a49fdde54df2b232e9e901a08e48cee6d
Prevent QFileInfo test from leaving temporary files behind.

Use a small helper class to ensure that the files created during the
test are removed afterwards, even if the test fails. Also, verify
creation of the files in the body of the test function, not in the
helper, as verifying in the helper won't terminate the test on failure.

Change-Id: I76eff20e54ef6a1ed71d9bbb31e00f41f3d14c38
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/corelib/io/qfileinfo/tst_qfileinfo.cpp