diff options
author | Sergio Ahumada <sahumada@blackberry.com> | 2014-02-21 14:12:45 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-25 16:47:22 +0100 |
commit | 5e39b7ad1ef76ab04d6997017b07efb4169cf018 (patch) | |
tree | 6173741e1b963425965675ca1f2c961fd78aa839 /tests/auto/network | |
parent | 699ba50744395f9eb9f241aa1a96c91c3ea0bc54 (diff) |
tst_spdy: Check network test server
There is no need to even try to run the tests if the network test
server is not present.
Add a validation in initTestCase() since all test functions depend
on the network test server.
Change-Id: I8eca376a718ab5b6e1cc2c57f2e045dd0b58f52b
Reviewed-by: Richard J. Moore <rich@kde.org>
Diffstat (limited to 'tests/auto/network')
-rw-r--r-- | tests/auto/network/access/spdy/tst_spdy.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/network/access/spdy/tst_spdy.cpp b/tests/auto/network/access/spdy/tst_spdy.cpp index d2a220bad4..15c0831590 100644 --- a/tests/auto/network/access/spdy/tst_spdy.cpp +++ b/tests/auto/network/access/spdy/tst_spdy.cpp @@ -64,6 +64,7 @@ public: ~tst_Spdy(); private Q_SLOTS: + void initTestCase(); void settingsAndNegotiation_data(); void settingsAndNegotiation(); void download_data(); @@ -103,6 +104,11 @@ tst_Spdy::~tst_Spdy() { } +void tst_Spdy::initTestCase() +{ + QVERIFY(QtNetworkSettings::verifyTestNetworkSettings()); +} + void tst_Spdy::settingsAndNegotiation_data() { QTest::addColumn<QUrl>("url"); |