diff options
author | David Faure <faure@kde.org> | 2012-06-23 11:40:53 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-23 14:16:29 +0200 |
commit | 86ae3809a96e298d2e4c643c90417eb01be87fd9 (patch) | |
tree | 1f4bb3286b28d0b2d90ef518bcf221f569e3ed36 /tests/auto/corelib/io/qtextstream | |
parent | 3d2a8d09d1444ce659abdc257b7f074b4472b7d7 (diff) |
Skip 3 test methods if the test server isn't set up.
This makes things easier for developers touching QtCore and running
all QtCore unit tests.
Change-Id: I7aa832a6a1be07d90cacad2eecb2364285ff3818
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
Diffstat (limited to 'tests/auto/corelib/io/qtextstream')
-rw-r--r-- | tests/auto/corelib/io/qtextstream/tst_qtextstream.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/corelib/io/qtextstream/tst_qtextstream.cpp b/tests/auto/corelib/io/qtextstream/tst_qtextstream.cpp index b22723a00c..8119ca19df 100644 --- a/tests/auto/corelib/io/qtextstream/tst_qtextstream.cpp +++ b/tests/auto/corelib/io/qtextstream/tst_qtextstream.cpp @@ -253,8 +253,6 @@ tst_QTextStream::tst_QTextStream() void tst_QTextStream::initTestCase() { - QVERIFY(QtNetworkSettings::verifyTestNetworkSettings()); - testFileName = tempDir.path() + "/testfile"; // chdir into the testdata dir and refer to our helper apps with relative paths @@ -1108,6 +1106,9 @@ void tst_QTextStream::stillOpenWhenAtEnd() #ifdef Q_OS_WINCE QSKIP("Qt/CE: Cannot test network on emulator"); #endif + if (!QtNetworkSettings::verifyTestNetworkSettings()) + QSKIP("No network test server available"); + QTcpSocket socket; socket.connectToHost(QtNetworkSettings::serverName(), 143); QVERIFY(socket.waitForReadyRead(5000)); |