qt5base-lts/tests/manual
Jason McDonald e15548d3e4 Fix sanity check of network test server
Some of Qt's autotests depend on access to a test server.  For each test
that used the test server, tests/auto/network-settings.h created a
global object to verify at startup that host lookups to the test server
will succeed (and abort the test otherwise).

There are two problems with that approach:

First, the sanity check happens before main(), and thus before the test
framework has started logging test results.  This means that if the
sanity check aborts the test, the failure message will not be visible in
the test output if logging to a file or will cause the output to be
malformed if logging to the console in XML format.

Second, since Qt 4.7, the host lookup uses a class that connects to the
QCoreApplication instance, which doesn't exist before main(), and this
caused all tests that included network-settings.h to output an error
message from QObject::connect() at the beginning of the test.

Both of these problems are solved by removing the global object from
network-settings.h and instead performing the sanity check in the
initTestCase() function of each test.

Task-number: QTBUG-22876
Change-Id: Id49c1826906327bf571686cc11527f0265e5af44
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
2011-11-28 08:13:41 +01:00
..
bearerex Remove last remnants of Maemo 5 from autotests 2011-10-06 01:28:01 +02:00
gestures Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
inputmethodhints Remove Symbian-specific code from tests. 2011-09-29 06:41:42 +02:00
keypadnavigation Remove last remnants of symbian in autotests. 2011-10-06 01:27:58 +02:00
lance Remove Symbian-specific code from tests. 2011-09-29 06:41:42 +02:00
mkspecs Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
network_remote_stresstest SSL namespace: rename TlsV1 to TlsV1_0 2011-11-16 10:32:10 +01:00
network_stresstest Fix sanity check of network test server 2011-11-28 08:13:41 +01:00
qcursor Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qdesktopwidget Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qgraphicsitemgroup Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qgraphicslayout/flicker Make QThread::sleep/msleep/usleep public. 2011-08-15 15:45:52 +02:00
qhttpnetworkconnection Correct usage of network-settings.h. 2011-11-28 08:13:41 +01:00
qimagereader Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qlocale Remove Symbian-specific code from tests. 2011-09-29 06:41:42 +02:00
qnetworkreply Fix sanity check of network test server 2011-11-28 08:13:41 +01:00
qssloptions Add the ability to do unsafe SSL renegotiation as a fallback. 2011-11-15 11:53:44 +01:00
qtabletevent Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtbug-8933 Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtouchevent Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qwidget_zorder Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
repaint Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
socketengine Correct usage of network-settings.h. 2011-11-28 08:13:41 +01:00
textrendering Remove Symbian-specific code from tests. 2011-09-29 06:41:42 +02:00
windowflags Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00