From 37eb6c7d5cc0c47d57d451e605383ee101a707e7 Mon Sep 17 00:00:00 2001 From: Jason McDonald Date: Fri, 28 Oct 2011 18:25:09 +1000 Subject: [PATCH] Remove debug code from QLocalSocket autotest. 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 --- .../auto/network/socket/qlocalsocket/tst_qlocalsocket.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tests/auto/network/socket/qlocalsocket/tst_qlocalsocket.cpp b/tests/auto/network/socket/qlocalsocket/tst_qlocalsocket.cpp index a9d3bebd08..12d0307847 100644 --- a/tests/auto/network/socket/qlocalsocket/tst_qlocalsocket.cpp +++ b/tests/auto/network/socket/qlocalsocket/tst_qlocalsocket.cpp @@ -416,13 +416,7 @@ void tst_QLocalSocket::listenAndConnect() // Check first and last state QCOMPARE(qVariantValue(spyStateChanged.first()[0]), QLocalSocket::ConnectingState); -#if 0 - for (int j = 0; j < spyStateChanged.count(); ++j) { - QLocalSocket::LocalSocketState s; - s = qVariantValue(spyStateChanged.at(j).at(0)); - qDebug() << s; - } -#endif + if (canListen) QCOMPARE(qVariantValue(spyStateChanged.last()[0]), QLocalSocket::ConnectedState);