summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/io/qprocessenvironment/tst_qprocessenvironment.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/corelib/io/qprocessenvironment/tst_qprocessenvironment.cpp')
-rw-r--r--tests/auto/corelib/io/qprocessenvironment/tst_qprocessenvironment.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/auto/corelib/io/qprocessenvironment/tst_qprocessenvironment.cpp b/tests/auto/corelib/io/qprocessenvironment/tst_qprocessenvironment.cpp
index 1c6bf6f19c..1827f8b2d7 100644
--- a/tests/auto/corelib/io/qprocessenvironment/tst_qprocessenvironment.cpp
+++ b/tests/auto/corelib/io/qprocessenvironment/tst_qprocessenvironment.cpp
@@ -57,7 +57,9 @@ private slots:
void caseSensitivity();
void systemEnvironment();
+#ifndef Q_OS_WINCE
void putenv();
+#endif
};
void tst_QProcessEnvironment::operator_eq()
@@ -276,11 +278,10 @@ void tst_QProcessEnvironment::systemEnvironment()
#endif
}
+// Windows CE has no environment.
+#ifndef Q_OS_WINCE
void tst_QProcessEnvironment::putenv()
{
-#ifdef Q_OS_WINCE
- QSKIP("Windows CE has no environment", SkipAll);
-#else
static const char envname[] = "WE_RE_SETTING_THIS_ENVIRONMENT_VARIABLE";
static bool testRan = false;
@@ -312,8 +313,8 @@ void tst_QProcessEnvironment::putenv()
QVERIFY(eAfter.contains(lower));
QCOMPARE(eAfter.value(lower), QString("Hello, World"));
# endif
-#endif
}
+#endif
QTEST_MAIN(tst_QProcessEnvironment)