Mark unstable windows network tests
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>
This commit is contained in:
parent
4cc8209998
commit
4bdc7e6f8b
@ -3,3 +3,5 @@ TARGET = tst_qnetworkinterface
|
||||
SOURCES += tst_qnetworkinterface.cpp
|
||||
|
||||
QT = core network testlib
|
||||
|
||||
win32:CONFIG+=insignificant_test # QTBUG-24451 - localAddress()
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
@ -22,3 +22,5 @@ wince* {
|
||||
}
|
||||
|
||||
requires(contains(QT_CONFIG,private_tests))
|
||||
|
||||
win32:CONFIG+=insignificant_test # QTBUG-24451 - all
|
||||
|
@ -22,3 +22,5 @@ wince* {
|
||||
}
|
||||
|
||||
requires(contains(QT_CONFIG,private_tests))
|
||||
|
||||
win32:CONFIG+=insignificant_test # QTBUG-24451 - all
|
||||
|
Loading…
Reference in New Issue
Block a user