Remove obsolete test data from QFile test.
authorJason McDonald <jason.mcdonald@nokia.com>
Fri, 18 Nov 2011 01:14:16 +0000 (11:14 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 18 Nov 2011 06:27:53 +0000 (07:27 +0100)
The removed data relied on the test's own source file having no write
permissions, but that is not a valid assumption -- in a source package
the file wouldn't have had write permissions, in Perforce it would have
depended on whether the file had been checked-out for editing and in git
the file would always have write permission.

Change-Id: I3b6100429120137095a210189961c8b97f06e50a
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/corelib/io/qfile/tst_qfile.cpp

index 8268b46..e467b86 100644 (file)
@@ -1082,7 +1082,6 @@ void tst_QFile::permissions_data()
 
     QTest::newRow("data0") << QCoreApplication::instance()->applicationFilePath() << uint(QFile::ExeUser) << true;
     QTest::newRow("data1") << SRCDIR "tst_qfile.cpp" << uint(QFile::ReadUser) << true;
-//    QTest::newRow("data2") << "tst_qfile.cpp" << int(QFile::WriteUser) << false;
     QTest::newRow("resource1") << ":/tst_qfileinfo/resources/file1.ext1" << uint(QFile::ReadUser) << true;
     QTest::newRow("resource2") << ":/tst_qfileinfo/resources/file1.ext1" << uint(QFile::WriteUser) << false;
     QTest::newRow("resource3") << ":/tst_qfileinfo/resources/file1.ext1" << uint(QFile::ExeUser) << false;