Remove debug code from QLocalSocket autotest.
authorJason McDonald <jason.mcdonald@nokia.com>
Fri, 28 Oct 2011 08:25:09 +0000 (18:25 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 31 Oct 2011 04:27:26 +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: Ie44b6ea8dd496857ea264f730148d3dc4f5c8324
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/network/socket/qlocalsocket/tst_qlocalsocket.cpp

index a9d3beb..12d0307 100644 (file)
@@ -416,13 +416,7 @@ void tst_QLocalSocket::listenAndConnect()
         // Check first and last state
         QCOMPARE(qVariantValue<QLocalSocket::LocalSocketState>(spyStateChanged.first()[0]),
                  QLocalSocket::ConnectingState);
-#if 0
-        for (int j = 0; j < spyStateChanged.count(); ++j) {
-            QLocalSocket::LocalSocketState s;
-            s = qVariantValue<QLocalSocket::LocalSocketState>(spyStateChanged.at(j).at(0));
-            qDebug() << s;
-        }
-#endif
+
         if (canListen)
             QCOMPARE(qVariantValue<QLocalSocket::LocalSocketState>(spyStateChanged.last()[0]),
                      QLocalSocket::ConnectedState);