Remove debugging code from QFileSystemWatcher test
authorJason McDonald <jason.mcdonald@nokia.com>
Mon, 31 Oct 2011 02:24:46 +0000 (12:24 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 31 Oct 2011 04:27:56 +0000 (05:27 +0100)
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>
tests/auto/corelib/io/qfilesystemwatcher/tst_qfilesystemwatcher.cpp

index fef2b46..63f51f7 100644 (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;