summaryrefslogtreecommitdiffstats
path: root/tests/auto/testlib/selftests/expected_globaldata.xunitxml
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-09-20 13:13:34 +1000
committerQt by Nokia <qt-info@nokia.com>2011-09-20 08:46:27 +0200
commit57368c7037c6d2a6c8cc18d9d41399bf740abe5c (patch)
treefe985dfedc02e690487c7efe7671859e571384af /tests/auto/testlib/selftests/expected_globaldata.xunitxml
parent01ece201ab08804c4ab226a39f1e1885aeaae0bd (diff)
Improve globaldata testlib selftest.
Make the test use qDebug instead of printf, so that the reference test output is the same regardless of whether the log goes to the console or a file. Also rename the test class, as it was evidently cut-n-pasted from the subtest selftest without being renamed. Change-Id: I8df1f0989f2e8c33c1f829ba8110fd740ff70f63 Reviewed-on: http://codereview.qt-project.org/5184 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto/testlib/selftests/expected_globaldata.xunitxml')
-rw-r--r--tests/auto/testlib/selftests/expected_globaldata.xunitxml73
1 files changed, 69 insertions, 4 deletions
diff --git a/tests/auto/testlib/selftests/expected_globaldata.xunitxml b/tests/auto/testlib/selftests/expected_globaldata.xunitxml
index d88fdbffa6..eade59734f 100644
--- a/tests/auto/testlib/selftests/expected_globaldata.xunitxml
+++ b/tests/auto/testlib/selftests/expected_globaldata.xunitxml
@@ -1,24 +1,89 @@
<?xml version="1.0" encoding="UTF-8" ?>
-<testsuite errors="3" failures="0" tests="6" name="tst_Subtest">
+<testsuite errors="34" failures="0" tests="6" name="tst_globaldata">
<properties>
<property value="@INSERT_QT_VERSION_HERE@" name="QTestVersion"/>
<property value="@INSERT_QT_VERSION_HERE@" name="QtVersion"/>
</properties>
- <testcase result="pass" name="initTestCase"/>
- <testcase result="pass" name="testGlobal"/>
+ <testcase result="pass" name="initTestCase">
+ <!-- message="initTestCase initTestCase (null) " type="qdebug" -->
+ </testcase>
+ <testcase result="pass" name="testGlobal">
+ <!-- tag="1:local 1" message="init testGlobal local 1 " type="qdebug" -->
+ <!-- tag="1:local 1" message="global: false " type="qdebug" -->
+ <!-- tag="1:local 1" message="local: false " type="qdebug" -->
+ <!-- tag="1:local 1" message="cleanup testGlobal local 1 " type="qdebug" -->
+ <!-- tag="1:local 2" message="init testGlobal local 2 " type="qdebug" -->
+ <!-- tag="1:local 2" message="global: false " type="qdebug" -->
+ <!-- tag="1:local 2" message="local: true " type="qdebug" -->
+ <!-- tag="1:local 2" message="cleanup testGlobal local 2 " type="qdebug" -->
+ <!-- tag="2:local 1" message="init testGlobal local 1 " type="qdebug" -->
+ <!-- tag="2:local 1" message="global: true " type="qdebug" -->
+ <!-- tag="2:local 1" message="local: false " type="qdebug" -->
+ <!-- tag="2:local 1" message="cleanup testGlobal local 1 " type="qdebug" -->
+ <!-- tag="2:local 2" message="init testGlobal local 2 " type="qdebug" -->
+ <!-- tag="2:local 2" message="global: true " type="qdebug" -->
+ <!-- tag="2:local 2" message="local: true " type="qdebug" -->
+ <!-- tag="2:local 2" message="cleanup testGlobal local 2 " type="qdebug" -->
+ </testcase>
<testcase name="skip">
<!-- tag="1" message="skipping" type="skip" -->
</testcase>
<testcase name="skipLocal">
+ <!-- tag="1:local 1" message="init skipLocal local 1 " type="qdebug" -->
<!-- tag="1:local 1" message="skipping" type="skip" -->
+ <!-- tag="1:local 1" message="cleanup skipLocal local 1 " type="qdebug" -->
</testcase>
<testcase result="pass" name="skipSingle">
+ <!-- tag="1:local 1" message="init skipSingle local 1 " type="qdebug" -->
+ <!-- tag="1:local 1" message="global: false local: false " type="qdebug" -->
+ <!-- tag="1:local 1" message="cleanup skipSingle local 1 " type="qdebug" -->
+ <!-- tag="1:local 2" message="init skipSingle local 2 " type="qdebug" -->
+ <!-- tag="1:local 2" message="global: false local: true " type="qdebug" -->
+ <!-- tag="1:local 2" message="cleanup skipSingle local 2 " type="qdebug" -->
+ <!-- tag="2:local 1" message="init skipSingle local 1 " type="qdebug" -->
<!-- tag="2:local 1" message="skipping" type="skip" -->
+ <!-- tag="2:local 1" message="cleanup skipSingle local 1 " type="qdebug" -->
+ <!-- tag="2:local 2" message="init skipSingle local 2 " type="qdebug" -->
+ <!-- tag="2:local 2" message="global: true local: true " type="qdebug" -->
+ <!-- tag="2:local 2" message="cleanup skipSingle local 2 " type="qdebug" -->
+ </testcase>
+ <testcase result="pass" name="cleanupTestCase">
+ <!-- message="cleanupTestCase cleanupTestCase (null) " type="qdebug" -->
</testcase>
- <testcase result="pass" name="cleanupTestCase"/>
<system-err>
+<![CDATA[initTestCase initTestCase (null) ]]>
+<![CDATA[init testGlobal local 1 ]]>
+<![CDATA[global: false ]]>
+<![CDATA[local: false ]]>
+<![CDATA[cleanup testGlobal local 1 ]]>
+<![CDATA[init testGlobal local 2 ]]>
+<![CDATA[global: false ]]>
+<![CDATA[local: true ]]>
+<![CDATA[cleanup testGlobal local 2 ]]>
+<![CDATA[init testGlobal local 1 ]]>
+<![CDATA[global: true ]]>
+<![CDATA[local: false ]]>
+<![CDATA[cleanup testGlobal local 1 ]]>
+<![CDATA[init testGlobal local 2 ]]>
+<![CDATA[global: true ]]>
+<![CDATA[local: true ]]>
+<![CDATA[cleanup testGlobal local 2 ]]>
<![CDATA[skipping]]>
+<![CDATA[init skipLocal local 1 ]]>
<![CDATA[skipping]]>
+<![CDATA[cleanup skipLocal local 1 ]]>
+<![CDATA[init skipSingle local 1 ]]>
+<![CDATA[global: false local: false ]]>
+<![CDATA[cleanup skipSingle local 1 ]]>
+<![CDATA[init skipSingle local 2 ]]>
+<![CDATA[global: false local: true ]]>
+<![CDATA[cleanup skipSingle local 2 ]]>
+<![CDATA[init skipSingle local 1 ]]>
<![CDATA[skipping]]>
+<![CDATA[cleanup skipSingle local 1 ]]>
+<![CDATA[init skipSingle local 2 ]]>
+<![CDATA[global: true local: true ]]>
+<![CDATA[cleanup skipSingle local 2 ]]>
+<![CDATA[cleanupTestCase cleanupTestCase (null) ]]>
</system-err>
</testsuite>