summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSergio Ahumada <sergio.ahumada@digia.com>2012-10-25 19:42:33 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-26 17:08:03 +0200
commitf224d073d5212a8b358253d209030925cbdb00b3 (patch)
treea6006b7d64807c7660f8d88c6caa1668fded7ce3 /tests
parent9bf017680229b7e1677d9c347cb36fce8c52a610 (diff)
test: Don't fail if the network test server is not set up
Leftover from 704a4e4747b2c42e262d9b4bd440ff365ab92a35 Change-Id: I437da91be31259a748303bd7cf20ff0c8bcf53b4 Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp b/tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp
index 284768ea13..b3282beaf5 100644
--- a/tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp
+++ b/tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp
@@ -1354,7 +1354,8 @@ void tst_QNetworkReply::initTestCase()
if (testDataDir.isEmpty())
testDataDir = QCoreApplication::applicationDirPath();
- QVERIFY(QtNetworkSettings::verifyTestNetworkSettings());
+ if (!QtNetworkSettings::verifyTestNetworkSettings())
+ QSKIP("No network test server available");
#if !defined Q_OS_WIN
wronlyFileName = testDataDir + "/write-only" + uniqueExtension;
QFile wr(wronlyFileName);