diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2011-10-26 11:03:35 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-27 03:15:09 +0200 |
commit | eeaf05155804dccfcd32adf78ccdf129b99c7708 (patch) | |
tree | c9c9bf2a434d2c0bc61ff9e5033e6652f9cbb900 /tests/auto/corelib/io/qprocessenvironment/tst_qprocessenvironment.cpp | |
parent | 66c3f8753c0557fdfafc79cdab11fbd6ffde9105 (diff) |
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>
Diffstat (limited to 'tests/auto/corelib/io/qprocessenvironment/tst_qprocessenvironment.cpp')
-rw-r--r-- | tests/auto/corelib/io/qprocessenvironment/tst_qprocessenvironment.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/corelib/io/qprocessenvironment/tst_qprocessenvironment.cpp b/tests/auto/corelib/io/qprocessenvironment/tst_qprocessenvironment.cpp index 00113631f5..e959a27c18 100644 --- a/tests/auto/corelib/io/qprocessenvironment/tst_qprocessenvironment.cpp +++ b/tests/auto/corelib/io/qprocessenvironment/tst_qprocessenvironment.cpp @@ -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(); |