Replace QSKIP with QFAIL in qputenv test

If qputenv fails, the test should fail rather than skip, particularly as
the test is supposed to be testing qputenv.

Change-Id: Iabe13d360cabaeffda46fab19f1dd0d4ed8e1eee
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
This commit is contained in:
Jason McDonald 2011-10-26 11:03:35 +10:00 committed by Qt by Nokia
parent 66c3f8753c
commit eeaf051558

View File

@ -296,8 +296,7 @@ void tst_QProcessEnvironment::putenv()
qputenv(envname, "Hello, World");
QByteArray valAfter = qgetenv(envname);
if (valAfter != "Hello, World")
QSKIP("Could not test: qputenv did not do its job");
QCOMPARE(valAfter, QByteArray("Hello, World"));
QProcessEnvironment eAfter = QProcessEnvironment::systemEnvironment();