diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2009-05-19 03:33:21 (GMT) |
---|---|---|
committer | Rohan McGovern <rohan.mcgovern@nokia.com> | 2009-05-19 04:06:55 (GMT) |
commit | ba7e2d913deb4adeef071002e3518f43949e6a08 (patch) | |
tree | 820e1ae297c9b94550e1d932201aa5e409c53043 /tests/auto/selftests/expected_xunit.txt | |
parent | 73dd402265ebc07e8c86e42321e881a903ec316e (diff) | |
download | Qt-ba7e2d913deb4adeef071002e3518f43949e6a08.zip Qt-ba7e2d913deb4adeef071002e3518f43949e6a08.tar.gz Qt-ba7e2d913deb4adeef071002e3518f43949e6a08.tar.bz2 |
Fixed incorrect pass/fail semantics for xpass/xfail when using
xunitxml testlib logger.
In the testlib plain logger, xfail is considered a pass and xpass
considered a fail. xunitxml had the opposite behavior; change it
to be the same.
Autotest: included
Diffstat (limited to 'tests/auto/selftests/expected_xunit.txt')
-rw-r--r-- | tests/auto/selftests/expected_xunit.txt | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/auto/selftests/expected_xunit.txt b/tests/auto/selftests/expected_xunit.txt index 875dda6..cb74491 100644 --- a/tests/auto/selftests/expected_xunit.txt +++ b/tests/auto/selftests/expected_xunit.txt @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8" ?> -<testsuite errors="3" failures="2" tests="6" name="tst_Xunit"> +<testsuite errors="5" failures="3" tests="9" name="tst_Xunit"> <properties> <property value="4.6.0" name="QTestVersion"/> <property value="4.6.0" name="QtVersion"/> @@ -20,10 +20,21 @@ <testcase result="fail" name="testFunc4"> <failure message="a forced failure!" result="fail"/> </testcase> + <testcase result="xfail" name="testFunc5"> + <!-- message="this failure is expected" type="info" --> + </testcase> + <testcase result="xfail" name="testFunc6"> + <!-- message="this failure is also expected" type="info" --> + </testcase> + <testcase result="xpass" name="testFunc7"> + <failure message="'true' returned FALSE. ()" result="xpass"/> + </testcase> <testcase result="pass" name="cleanupTestCase"/> <system-err> <![CDATA[just a QWARN() !]]> <![CDATA[a qDebug() call with comment-ending stuff -->]]> <![CDATA[skipping this function!]]> +<![CDATA[this failure is expected]]> +<![CDATA[this failure is also expected]]> </system-err> </testsuite> |