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:
parent
bc323b6fd3
commit
41b2992422
@ -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(""));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user