Remove debugging code from QFileSystemWatcher test

Any test diagnostics that are useful should be part of the regular test
output, as the CI system cannot switch on commented-out code when there
is a test failure.

Change-Id: I201ba754df26ffc30997bead8b822f97913db2b6
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
This commit is contained in:
Jason McDonald 2011-10-31 12:24:46 +10:00 committed by Qt by Nokia
parent 31e3f78336
commit be16b833a5

View File

@ -400,15 +400,6 @@ void tst_QFileSystemWatcher::removePaths()
watcher.removePaths(paths);
}
#if 0
class SignalTest : public QObject {
Q_OBJECT
public slots:
void fileSlot(const QString &file) { qDebug() << "file " << file;}
void dirSlot(const QString &dir) { qDebug() << "dir" << dir;}
};
#endif
void tst_QFileSystemWatcher::watchFileAndItsDirectory()
{
QFETCH(QString, backend);
@ -433,12 +424,6 @@ void tst_QFileSystemWatcher::watchFileAndItsDirectory()
watcher.addPath(testDir.dirName());
watcher.addPath(testFileName);
/*
SignalTest signalTest;
QObject::connect(&watcher, SIGNAL(fileChanged(const QString &)), &signalTest, SLOT(fileSlot(const QString &)));
QObject::connect(&watcher, SIGNAL(directoryChanged(const QString &)), &signalTest, SLOT(dirSlot(const QString &)));
*/
QSignalSpy fileChangedSpy(&watcher, SIGNAL(fileChanged(const QString &)));
QSignalSpy dirChangedSpy(&watcher, SIGNAL(directoryChanged(const QString &)));
QEventLoop eventLoop;