Test: remove QSKIP from tst_QProcessEnvironment::putenv
Instead omit the whole test when Q_OS_WINCE is defined. Change-Id: I19e35b837709c92e0202c6a96d113367bc6c92c2 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
This commit is contained in:
parent
fbd10a401f
commit
26dddabcaa
@ -57,7 +57,9 @@ private slots:
|
|||||||
|
|
||||||
void caseSensitivity();
|
void caseSensitivity();
|
||||||
void systemEnvironment();
|
void systemEnvironment();
|
||||||
|
#ifndef Q_OS_WINCE
|
||||||
void putenv();
|
void putenv();
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
void tst_QProcessEnvironment::operator_eq()
|
void tst_QProcessEnvironment::operator_eq()
|
||||||
@ -276,11 +278,10 @@ void tst_QProcessEnvironment::systemEnvironment()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef Q_OS_WINCE
|
||||||
|
//Windows CE has no environment
|
||||||
void tst_QProcessEnvironment::putenv()
|
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 const char envname[] = "WE_RE_SETTING_THIS_ENVIRONMENT_VARIABLE";
|
||||||
static bool testRan = false;
|
static bool testRan = false;
|
||||||
|
|
||||||
@ -311,8 +312,8 @@ void tst_QProcessEnvironment::putenv()
|
|||||||
QVERIFY(eAfter.contains(lower));
|
QVERIFY(eAfter.contains(lower));
|
||||||
QCOMPARE(eAfter.value(lower), QString("Hello, World"));
|
QCOMPARE(eAfter.value(lower), QString("Hello, World"));
|
||||||
# endif
|
# endif
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
QTEST_MAIN(tst_QProcessEnvironment)
|
QTEST_MAIN(tst_QProcessEnvironment)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user