summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/io/qtextstream
diff options
context:
space:
mode:
authorCaroline Chao <caroline.chao@digia.com>2012-10-16 12:43:08 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-16 15:29:15 +0200
commitd81cf44a6b8c465353c9d4fed10fdf1f876c85cb (patch)
treee88165078de826528fc756c5deea745e1f638003 /tests/auto/corelib/io/qtextstream
parent26dddabcaae2a9e0adf3e960165ae481abf39bc7 (diff)
Test: remove QSKIP from tst_qstextstream
Instead omit the whole tests when Q_OS_WINCE is defined. Change-Id: Idb15d622c9e1dbe4c8ec6a43c34a88e7fef2a384 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'tests/auto/corelib/io/qtextstream')
-rw-r--r--tests/auto/corelib/io/qtextstream/tst_qtextstream.cpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/tests/auto/corelib/io/qtextstream/tst_qtextstream.cpp b/tests/auto/corelib/io/qtextstream/tst_qtextstream.cpp
index f37209db06..9e2cd5ec2a 100644
--- a/tests/auto/corelib/io/qtextstream/tst_qtextstream.cpp
+++ b/tests/auto/corelib/io/qtextstream/tst_qtextstream.cpp
@@ -195,9 +195,11 @@ private slots:
void pos();
void pos2();
void pos3LargeFile();
+#ifndef Q_OS_WINCE
void readStdin();
void readAllFromStdin();
void readLineFromStdin();
+#endif
void read();
void qbool();
void forcePoint();
@@ -1385,11 +1387,10 @@ void tst_QTextStream::pos3LargeFile()
}
// ------------------------------------------------------------------------------
+#ifndef Q_OS_WINCE
+// Qt/CE has no stdin/out support for processes
void tst_QTextStream::readStdin()
{
-#if defined(Q_OS_WINCE)
- QSKIP("Qt/CE has no stdin/out support for processes");
-#endif
QProcess stdinProcess;
stdinProcess.start("stdinProcess/stdinProcess");
stdinProcess.setReadChannel(QProcess::StandardError);
@@ -1409,13 +1410,13 @@ void tst_QTextStream::readStdin()
QCOMPARE(b, 2);
QCOMPARE(c, 3);
}
+#endif
// ------------------------------------------------------------------------------
+#ifndef Q_OS_WINCE
+// Qt/CE has no stdin/out support for processes
void tst_QTextStream::readAllFromStdin()
{
-#if defined(Q_OS_WINCE)
- QSKIP("Qt/CE has no stdin/out support for processes");
-#endif
QProcess stdinProcess;
stdinProcess.start("readAllStdinProcess/readAllStdinProcess", QIODevice::ReadWrite | QIODevice::Text);
stdinProcess.setReadChannel(QProcess::StandardError);
@@ -1430,13 +1431,13 @@ void tst_QTextStream::readAllFromStdin()
QChar quoteChar('"');
QCOMPARE(stream.readAll(), QString::fromLatin1("%1hello world%2 \n").arg(quoteChar).arg(quoteChar));
}
+#endif
// ------------------------------------------------------------------------------
+#ifndef Q_OS_WINCE
+// Qt/CE has no stdin/out support for processes
void tst_QTextStream::readLineFromStdin()
{
-#if defined(Q_OS_WINCE)
- QSKIP("Qt/CE has no stdin/out support for processes");
-#endif
QProcess stdinProcess;
stdinProcess.start("readLineStdinProcess/readLineStdinProcess", QIODevice::ReadWrite | QIODevice::Text);
stdinProcess.setReadChannel(QProcess::StandardError);
@@ -1453,6 +1454,7 @@ void tst_QTextStream::readLineFromStdin()
QVERIFY(stdinProcess.waitForFinished(5000));
}
+#endif
// ------------------------------------------------------------------------------
void tst_QTextStream::read()