Test: Enabled tst_QFile::invalidFile

The test is not hanging on Windows anymore.

On Windows, add an expected failure for the failing case.

Task-number: QTBUG-22801
Task-number: QTBUG-27306

Change-Id: Iede95766504f3e8a278a4554a5967ca333aae3bf
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
This commit is contained in:
Caroline Chao 2012-09-24 08:56:56 +02:00 committed by The Qt Project
parent 1dadede8ed
commit 99f2bdd28f

View File

@ -229,8 +229,6 @@ private slots:
void openDirectory(); void openDirectory();
void writeNothing(); void writeNothing();
public:
// disabled this test for the moment... it hangs
void invalidFile_data(); void invalidFile_data();
void invalidFile(); void invalidFile();
@ -1062,6 +1060,7 @@ void tst_QFile::invalidFile()
{ {
QFETCH( QString, fileName ); QFETCH( QString, fileName );
QFile f( fileName ); QFile f( fileName );
QEXPECT_FAIL("colon1", "QTBUG-27306", Continue);
QVERIFY( !f.open( QIODevice::ReadWrite ) ); QVERIFY( !f.open( QIODevice::ReadWrite ) );
} }