summaryrefslogtreecommitdiffstats
path: root/tests/auto/testlib/selftests/expected_silent.junitxml
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-07-22 01:38:42 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-07-24 00:51:54 +0200
commit67c877562b18ea5c591d2884d2b14f7bf3a39149 (patch)
treeefac919ee2f72dacb1df53896754d501640890a2 /tests/auto/testlib/selftests/expected_silent.junitxml
parentc70d693378b8110c09fdd18d7a4a22e8bd1b98d9 (diff)
testlib: Output JUnitXML attributes in right order
The attributes are, like the elements, maintained in reverse order in the underlying QTestCoreList, so we need to iterate them backwards when printing out the resulting XML to reflect the order they were added. This results in e.g.: <testcase name="passingBenchmark" result="pass"> Instead of: <testcase result="pass" name="passingBenchmark"> Change-Id: Ic2eeab8de05ffedd0c41977358d5b40ff77878b1 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'tests/auto/testlib/selftests/expected_silent.junitxml')
-rw-r--r--tests/auto/testlib/selftests/expected_silent.junitxml44
1 files changed, 22 insertions, 22 deletions
diff --git a/tests/auto/testlib/selftests/expected_silent.junitxml b/tests/auto/testlib/selftests/expected_silent.junitxml
index ea229d1dc7..266641d88d 100644
--- a/tests/auto/testlib/selftests/expected_silent.junitxml
+++ b/tests/auto/testlib/selftests/expected_silent.junitxml
@@ -1,33 +1,33 @@
<?xml version="1.0" encoding="UTF-8" ?>
-<testsuite errors="9" failures="3" tests="7" name="tst_Silent">
+<testsuite name="tst_Silent" tests="7" failures="3" errors="9">
<properties>
- <property value="@INSERT_QT_VERSION_HERE@" name="QTestVersion"/>
- <property value="@INSERT_QT_VERSION_HERE@" name="QtVersion"/>
- <property value="" name="QtBuild"/>
+ <property name="QTestVersion" value="@INSERT_QT_VERSION_HERE@"/>
+ <property name="QtVersion" value="@INSERT_QT_VERSION_HERE@"/>
+ <property name="QtBuild" value=""/>
</properties>
- <testcase result="pass" name="initTestCase"/>
- <testcase result="pass" name="pass"/>
+ <testcase name="initTestCase" result="pass"/>
+ <testcase name="pass" result="pass"/>
<testcase name="skip">
- <!-- message="This test should skip" type="skip" -->
+ <!-- type="skip" message="This test should skip" -->
</testcase>
- <testcase result="fail" name="fail">
- <failure message="&apos;false&apos; returned FALSE. (This test should fail)" result="fail"/>
+ <testcase name="fail" result="fail">
+ <failure result="fail" message="&apos;false&apos; returned FALSE. (This test should fail)"/>
</testcase>
- <testcase result="xfail" name="xfail">
- <!-- message="This test should XFAIL" type="info" -->
+ <testcase name="xfail" result="xfail">
+ <!-- type="info" message="This test should XFAIL" -->
</testcase>
- <testcase result="xpass" name="xpass">
- <failure message="&apos;true&apos; returned TRUE unexpectedly. (This test should XPASS)" result="xpass"/>
+ <testcase name="xpass" result="xpass">
+ <failure result="xpass" message="&apos;true&apos; returned TRUE unexpectedly. (This test should XPASS)"/>
</testcase>
- <testcase result="fail" name="messages">
- <!-- message="This is a warning that should not appear in silent test output" type="qwarn" -->
- <!-- message="This is an internal testlib warning that should not appear in silent test output" type="warn" -->
- <!-- message="This is a debug message that should not appear in silent test output" type="qdebug" -->
- <!-- message="This is a critical message that should not appear in silent test output" type="system" -->
- <!-- message="This is an info message that should not appear in silent test output" type="qinfo" -->
- <!-- message="This is an internal testlib info message that should not appear in silent test output" type="info" -->
- <!-- message="This is a fatal error message that should still appear in silent test output" type="qfatal" -->
- <failure message="Received a fatal error." result="fail"/>
+ <testcase name="messages" result="fail">
+ <!-- type="qwarn" message="This is a warning that should not appear in silent test output" -->
+ <!-- type="warn" message="This is an internal testlib warning that should not appear in silent test output" -->
+ <!-- type="qdebug" message="This is a debug message that should not appear in silent test output" -->
+ <!-- type="system" message="This is a critical message that should not appear in silent test output" -->
+ <!-- type="qinfo" message="This is an info message that should not appear in silent test output" -->
+ <!-- type="info" message="This is an internal testlib info message that should not appear in silent test output" -->
+ <!-- type="qfatal" message="This is a fatal error message that should still appear in silent test output" -->
+ <failure result="fail" message="Received a fatal error."/>
</testcase>
<system-err>
<![CDATA[This test should skip]]>