remove no-op test from tst_qfile

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>
This commit is contained in:
Joerg Bornemann 2012-09-26 19:46:17 +02:00 committed by The Qt Project
parent 9e750d341a
commit 52e6a908bd

View 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");