Instead omit the whole test when Q_OS_WINCE is defined.
Change-Id: I19e35b837709c92e0202c6a96d113367bc6c92c2
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
void caseSensitivity();
void systemEnvironment();
+#ifndef Q_OS_WINCE
void putenv();
+#endif
};
void tst_QProcessEnvironment::operator_eq()
#endif
}
+#ifndef Q_OS_WINCE
+//Windows CE has no environment
void tst_QProcessEnvironment::putenv()
{
-#ifdef Q_OS_WINCE
- QSKIP("Windows CE has no environment");
-#else
static const char envname[] = "WE_RE_SETTING_THIS_ENVIRONMENT_VARIABLE";
static bool testRan = false;
QVERIFY(eAfter.contains(lower));
QCOMPARE(eAfter.value(lower), QString("Hello, World"));
# endif
-#endif
}
+#endif
QTEST_MAIN(tst_QProcessEnvironment)