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:
parent
66c3f8753c
commit
eeaf051558
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user