summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJanne Anttila <janne.anttila@digia.com>2013-04-17 15:58:38 +0300
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-17 19:49:08 +0200
commit52afd781ad1ea61c6f0daf6633f5c65c006198fb (patch)
tree1c131417b2d077d63c8513675f50448208b4d32d /tests
parent4f0770eaabb8abf4de94dfbff1b691d32a305392 (diff)
Fix qprocess benchmark test build for WEC7.
Use Q_OS_WINCE ifdef in both method declaration and definition, in addition combine QT_NO_PROCESS and Q_OS_WINCE ifdefs to one line. Change-Id: I0787e4341c41b46a5fc089f24a538c0ad40a0875 Reviewed-by: Björn Breitmeyer <bjoern.breitmeyer@kdab.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/benchmarks/corelib/io/qprocess/tst_bench_qprocess.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/benchmarks/corelib/io/qprocess/tst_bench_qprocess.cpp b/tests/benchmarks/corelib/io/qprocess/tst_bench_qprocess.cpp
index 0b569cc49d..8d388751d5 100644
--- a/tests/benchmarks/corelib/io/qprocess/tst_bench_qprocess.cpp
+++ b/tests/benchmarks/corelib/io/qprocess/tst_bench_qprocess.cpp
@@ -46,7 +46,7 @@ class tst_QProcess : public QObject
{
Q_OBJECT
-#ifndef QT_NO_PROCESS
+#if !defined(QT_NO_PROCESS) && !defined(Q_OS_WINCE)
private slots:
void echoTest_performance();
@@ -54,8 +54,7 @@ private slots:
#endif // QT_NO_PROCESS
};
-#ifndef QT_NO_PROCESS
-#ifndef Q_OS_WINCE
+#if !defined(QT_NO_PROCESS) && !defined(Q_OS_WINCE)
// Reading and writing to a process is not supported on Qt/CE
void tst_QProcess::echoTest_performance()
{
@@ -101,9 +100,8 @@ void tst_QProcess::echoTest_performance()
process.closeWriteChannel();
QVERIFY(process.waitForFinished());
}
-#endif // Q_OS_WINCE
-#endif // QT_NO_PROCESS
+#endif // QT_NO_PROCESS && Q_OS_WINCE
QTEST_MAIN(tst_QProcess)
#include "tst_bench_qprocess.moc"