remove no-op test from tst_qfile
authorJoerg Bornemann <joerg.bornemann@digia.com>
Wed, 26 Sep 2012 17:46:17 +0000 (19:46 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 27 Sep 2012 13:50:17 +0000 (15:50 +0200)
According to the repo history the tailFile was introduced with the
S60 port but the functionality it's testing was never implemented.

Task-number: QTBUG-22341

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

index d0fa303..fb2a223 100644 (file)
@@ -164,7 +164,6 @@ private slots:
 #if defined(Q_OS_WIN) && !defined(Q_OS_WINCE)
     void largeUncFileSupport();
 #endif
-    void tailFile();
     void flush();
     void bufferedRead();
     void isSequential();
@@ -1536,28 +1535,6 @@ void tst_QFile::largeUncFileSupport()
 }
 #endif
 
-void tst_QFile::tailFile()
-{
-    QSKIP("File change notifications are so far unsupported.");
-
-    QFile file("tail.txt");
-    QVERIFY(file.open(QFile::WriteOnly | QFile::Append));
-
-    QFile tailFile("tail.txt");
-    QVERIFY(tailFile.open(QFile::ReadOnly));
-    tailFile.seek(file.size());
-
-    QSignalSpy readSignalSpy(&tailFile, SIGNAL(readyRead()));
-    QVERIFY(readSignalSpy.isValid());
-
-    file.write("", 1);
-
-    QTestEventLoop::instance().enterLoop(5);
-
-    QVERIFY(!QTestEventLoop::instance().timeout());
-    QCOMPARE(readSignalSpy.count(), 1);
-}
-
 void tst_QFile::flush()
 {
     QString fileName("stdfile.txt");