Mark unstable windows network tests
authorShane Kearns <ext-shane.2.kearns@nokia.com>
Fri, 2 Mar 2012 19:10:41 +0000 (19:10 +0000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 8 Mar 2012 04:31:40 +0000 (05:31 +0100)
This is unfortunately still "most of them", because of QTBUG-24451
however some of the unit tests are still possible to test stably.

Also skipped test cases which would hang forever due to QTBUG-24451.

Bearer tests are not run, because they pass when test machine has no
wireless LAN, but fail or hang if it does (QTBUG-24503)

Change-Id: Icf99d45707102d2ef9219ed0b5ad521605716219
Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/network/kernel/qnetworkinterface/qnetworkinterface.pro
tests/auto/network/network.pro
tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp
tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp
tests/auto/network/ssl/qsslsocket_onDemandCertificates_member/qsslsocket_onDemandCertificates_member.pro
tests/auto/network/ssl/qsslsocket_onDemandCertificates_static/qsslsocket_onDemandCertificates_static.pro

index 694dec2..ba40157 100644 (file)
@@ -3,3 +3,5 @@ TARGET = tst_qnetworkinterface
 SOURCES  += tst_qnetworkinterface.cpp
 
 QT = core network testlib
+
+win32:CONFIG+=insignificant_test      # QTBUG-24451 - localAddress()
index 3eafd7d..2048d14 100644 (file)
@@ -6,3 +6,7 @@ SUBDIRS=\
    ssl \
    socket \
 
+win32 {
+    socket.CONFIG += no_check_target      # QTBUG-24451 - all socket tests require waitForX
+    bearer.CONFIG += no_check_target      # QTBUG-24503 - these tests fail if machine has a WLAN adaptor
+}
index 5395c7c..3c7c3a3 100644 (file)
@@ -1475,6 +1475,9 @@ void tst_QTcpSocket::waitForBytesWritten()
 //----------------------------------------------------------------------------------
 void tst_QTcpSocket::waitForBytesWrittenMinusOne()
 {
+#ifdef Q_OS_WIN
+    QSKIP("QTBUG-24451 - indefinite wait may hang");
+#endif
     QTcpSocket *socket = newSocket();
     socket->connectToHost(QtNetworkSettings::serverName(), 80);
     QVERIFY(socket->waitForConnected(10000));
@@ -1500,6 +1503,9 @@ void tst_QTcpSocket::waitForReadyRead()
 //----------------------------------------------------------------------------------
 void tst_QTcpSocket::waitForReadyReadMinusOne()
 {
+#ifdef Q_OS_WIN
+    QSKIP("QTBUG-24451 - indefinite wait may hang");
+#endif
     QTcpSocket *socket = newSocket();
     socket->connectToHost(QtNetworkSettings::serverName(), 80);
     socket->write("GET / HTTP/1.0\r\n\r\n");
@@ -2102,6 +2108,9 @@ void tst_QTcpSocket::abortiveClose_abortSlot()
 //----------------------------------------------------------------------------------
 void tst_QTcpSocket::localAddressEmptyOnBSD()
 {
+#ifdef Q_OS_WIN
+    QSKIP("QTBUG-24451 - indefinite wait may hang");
+#endif
     QFETCH_GLOBAL(bool, setProxy);
     if (setProxy)
         return; //proxy not useful for localhost test case
index cdb397c..2f9ed0d 100644 (file)
@@ -1157,6 +1157,9 @@ void tst_QSslSocket::waitForEncrypted()
 
 void tst_QSslSocket::waitForEncryptedMinusOne()
 {
+#ifdef Q_OS_WIN
+    QSKIP("QTBUG-24451 - indefinite wait may hang");
+#endif
     if (!QSslSocket::supportsSsl())
         return;
 
@@ -1663,6 +1666,9 @@ protected:
 
 void tst_QSslSocket::waitForMinusOne()
 {
+#ifdef Q_OS_WIN
+    QSKIP("QTBUG-24451 - indefinite wait may hang");
+#endif
     QFETCH_GLOBAL(bool, setProxy);
     if (setProxy)
         return;