summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib
diff options
context:
space:
mode:
authorCaroline Chao <caroline.chao@digia.com>2012-10-18 10:07:28 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-18 12:24:55 +0200
commit8506850cc882b01352c207b8a2838a0c614323c8 (patch)
treef6fcb1ba9698592bb1730354f7c7ad6e649c9951 /tests/auto/corelib
parent8660a3bce1637ee833565b8d7c3ba498bd4a81b0 (diff)
Test: remove QSKIP from tst_QTextStream::stillOpenWhenAtEnd
Instead omit the whole test when Q_OS_WINCE is defined. Change-Id: Ifd09048687db95913f39a64cffb42a743af8fa81 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'tests/auto/corelib')
-rw-r--r--tests/auto/corelib/io/qtextstream/tst_qtextstream.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/auto/corelib/io/qtextstream/tst_qtextstream.cpp b/tests/auto/corelib/io/qtextstream/tst_qtextstream.cpp
index 9e2cd5ec2a..7069ab8d29 100644
--- a/tests/auto/corelib/io/qtextstream/tst_qtextstream.cpp
+++ b/tests/auto/corelib/io/qtextstream/tst_qtextstream.cpp
@@ -188,7 +188,9 @@ private slots:
void octTest();
void zeroTermination();
void ws_manipulator();
+#ifndef Q_OS_WINCE
void stillOpenWhenAtEnd();
+#endif
void readNewlines_data();
void readNewlines();
void seek();
@@ -1096,6 +1098,8 @@ void tst_QTextStream::ws_manipulator()
}
// ------------------------------------------------------------------------------
+#ifndef Q_OS_WINCE
+// Qt/CE: Cannot test network on emulator
void tst_QTextStream::stillOpenWhenAtEnd()
{
QFile file(QFINDTESTDATA("tst_qtextstream.cpp"));
@@ -1105,9 +1109,6 @@ void tst_QTextStream::stillOpenWhenAtEnd()
while (!stream.readLine().isNull()) {}
QVERIFY(file.isOpen());
-#ifdef Q_OS_WINCE
- QSKIP("Qt/CE: Cannot test network on emulator");
-#endif
if (!QtNetworkSettings::verifyTestNetworkSettings())
QSKIP("No network test server available");
@@ -1119,6 +1120,7 @@ void tst_QTextStream::stillOpenWhenAtEnd()
while (!stream2.readLine().isNull()) {}
QVERIFY(socket.isOpen());
}
+#endif
// ------------------------------------------------------------------------------
void tst_QTextStream::readNewlines_data()