Changed qdir unittest remove() to check actual file removed

- Changed remove() test to check the file just removed is gone.

Change-Id: I0b6c176e624134402b5547866064f436ce063f16
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
This commit is contained in:
Kurt Korbatits 2012-03-01 12:57:37 +10:00 committed by Qt by Nokia
parent bc323b6fd3
commit 41b2992422

View File

@ -1214,7 +1214,8 @@ void tst_QDir::remove()
f.close();
QDir dir;
QVERIFY(dir.remove("remove-test"));
QVERIFY(!dir.remove("/remove-test"));
// Test that the file just removed is gone
QVERIFY(!dir.remove("remove-test"));
QTest::ignoreMessage(QtWarningMsg, "QDir::remove: Empty or null file name");
QVERIFY(!dir.remove(""));
}