From 5e39b7ad1ef76ab04d6997017b07efb4169cf018 Mon Sep 17 00:00:00 2001 From: Sergio Ahumada Date: Fri, 21 Feb 2014 14:12:45 +0100 Subject: [PATCH] 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 --- tests/auto/network/access/spdy/tst_spdy.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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("url");