summaryrefslogtreecommitdiffstats
path: root/tests/auto/testlib/selftests/expected_globaldata.xml
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.xml
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.xml')
-rw-r--r--tests/auto/testlib/selftests/expected_globaldata.xml130
1 files changed, 126 insertions, 4 deletions
diff --git a/tests/auto/testlib/selftests/expected_globaldata.xml b/tests/auto/testlib/selftests/expected_globaldata.xml
index ea4beb1886..7a3d9d4ded 100644
--- a/tests/auto/testlib/selftests/expected_globaldata.xml
+++ b/tests/auto/testlib/selftests/expected_globaldata.xml
@@ -1,35 +1,157 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
-<TestCase name="tst_Subtest">
+<TestCase name="tst_globaldata">
<Environment>
<QtVersion>@INSERT_QT_VERSION_HERE@</QtVersion>
<QTestVersion>@INSERT_QT_VERSION_HERE@</QTestVersion>
</Environment>
<TestFunction name="initTestCase">
+<Message type="qdebug" file="" line="0">
+ <Description><![CDATA[initTestCase initTestCase (null) ]]></Description>
+</Message>
<Incident type="pass" file="" line="0" />
</TestFunction>
<TestFunction name="testGlobal">
+<Message type="qdebug" file="" line="0">
+ <DataTag><![CDATA[1:local 1]]></DataTag>
+ <Description><![CDATA[init testGlobal local 1 ]]></Description>
+</Message>
+<Message type="qdebug" file="" line="0">
+ <DataTag><![CDATA[1:local 1]]></DataTag>
+ <Description><![CDATA[global: false ]]></Description>
+</Message>
+<Message type="qdebug" file="" line="0">
+ <DataTag><![CDATA[1:local 1]]></DataTag>
+ <Description><![CDATA[local: false ]]></Description>
+</Message>
+<Message type="qdebug" file="" line="0">
+ <DataTag><![CDATA[1:local 1]]></DataTag>
+ <Description><![CDATA[cleanup testGlobal local 1 ]]></Description>
+</Message>
+<Message type="qdebug" file="" line="0">
+ <DataTag><![CDATA[1:local 2]]></DataTag>
+ <Description><![CDATA[init testGlobal local 2 ]]></Description>
+</Message>
+<Message type="qdebug" file="" line="0">
+ <DataTag><![CDATA[1:local 2]]></DataTag>
+ <Description><![CDATA[global: false ]]></Description>
+</Message>
+<Message type="qdebug" file="" line="0">
+ <DataTag><![CDATA[1:local 2]]></DataTag>
+ <Description><![CDATA[local: true ]]></Description>
+</Message>
+<Message type="qdebug" file="" line="0">
+ <DataTag><![CDATA[1:local 2]]></DataTag>
+ <Description><![CDATA[cleanup testGlobal local 2 ]]></Description>
+</Message>
+<Message type="qdebug" file="" line="0">
+ <DataTag><![CDATA[2:local 1]]></DataTag>
+ <Description><![CDATA[init testGlobal local 1 ]]></Description>
+</Message>
+<Message type="qdebug" file="" line="0">
+ <DataTag><![CDATA[2:local 1]]></DataTag>
+ <Description><![CDATA[global: true ]]></Description>
+</Message>
+<Message type="qdebug" file="" line="0">
+ <DataTag><![CDATA[2:local 1]]></DataTag>
+ <Description><![CDATA[local: false ]]></Description>
+</Message>
+<Message type="qdebug" file="" line="0">
+ <DataTag><![CDATA[2:local 1]]></DataTag>
+ <Description><![CDATA[cleanup testGlobal local 1 ]]></Description>
+</Message>
+<Message type="qdebug" file="" line="0">
+ <DataTag><![CDATA[2:local 2]]></DataTag>
+ <Description><![CDATA[init testGlobal local 2 ]]></Description>
+</Message>
+<Message type="qdebug" file="" line="0">
+ <DataTag><![CDATA[2:local 2]]></DataTag>
+ <Description><![CDATA[global: true ]]></Description>
+</Message>
+<Message type="qdebug" file="" line="0">
+ <DataTag><![CDATA[2:local 2]]></DataTag>
+ <Description><![CDATA[local: true ]]></Description>
+</Message>
+<Message type="qdebug" file="" line="0">
+ <DataTag><![CDATA[2:local 2]]></DataTag>
+ <Description><![CDATA[cleanup testGlobal local 2 ]]></Description>
+</Message>
<Incident type="pass" file="" line="0" />
</TestFunction>
<TestFunction name="skip">
-<Message type="skip" file="/local/user_builds/qt/4.6/tests/auto/selftests/globaldata/tst_globaldata.cpp" line="128">
+<Message type="skip" file="/home/dev/qt5/qtbase/tests/auto/testlib/selftests/globaldata/tst_globaldata.cpp" line="129">
<DataTag><![CDATA[1]]></DataTag>
<Description><![CDATA[skipping]]></Description>
</Message>
</TestFunction>
<TestFunction name="skipLocal">
-<Message type="skip" file="/local/user_builds/qt/4.6/tests/auto/selftests/globaldata/tst_globaldata.cpp" line="148">
+<Message type="qdebug" file="" line="0">
+ <DataTag><![CDATA[1:local 1]]></DataTag>
+ <Description><![CDATA[init skipLocal local 1 ]]></Description>
+</Message>
+<Message type="skip" file="/home/dev/qt5/qtbase/tests/auto/testlib/selftests/globaldata/tst_globaldata.cpp" line="149">
<DataTag><![CDATA[1:local 1]]></DataTag>
<Description><![CDATA[skipping]]></Description>
</Message>
+<Message type="qdebug" file="" line="0">
+ <DataTag><![CDATA[1:local 1]]></DataTag>
+ <Description><![CDATA[cleanup skipLocal local 1 ]]></Description>
+</Message>
</TestFunction>
<TestFunction name="skipSingle">
-<Message type="skip" file="/local/user_builds/qt/4.6/tests/auto/selftests/globaldata/tst_globaldata.cpp" line="142">
+<Message type="qdebug" file="" line="0">
+ <DataTag><![CDATA[1:local 1]]></DataTag>
+ <Description><![CDATA[init skipSingle local 1 ]]></Description>
+</Message>
+<Message type="qdebug" file="" line="0">
+ <DataTag><![CDATA[1:local 1]]></DataTag>
+ <Description><![CDATA[global: false local: false ]]></Description>
+</Message>
+<Message type="qdebug" file="" line="0">
+ <DataTag><![CDATA[1:local 1]]></DataTag>
+ <Description><![CDATA[cleanup skipSingle local 1 ]]></Description>
+</Message>
+<Message type="qdebug" file="" line="0">
+ <DataTag><![CDATA[1:local 2]]></DataTag>
+ <Description><![CDATA[init skipSingle local 2 ]]></Description>
+</Message>
+<Message type="qdebug" file="" line="0">
+ <DataTag><![CDATA[1:local 2]]></DataTag>
+ <Description><![CDATA[global: false local: true ]]></Description>
+</Message>
+<Message type="qdebug" file="" line="0">
+ <DataTag><![CDATA[1:local 2]]></DataTag>
+ <Description><![CDATA[cleanup skipSingle local 2 ]]></Description>
+</Message>
+<Message type="qdebug" file="" line="0">
+ <DataTag><![CDATA[2:local 1]]></DataTag>
+ <Description><![CDATA[init skipSingle local 1 ]]></Description>
+</Message>
+<Message type="skip" file="/home/dev/qt5/qtbase/tests/auto/testlib/selftests/globaldata/tst_globaldata.cpp" line="143">
<DataTag><![CDATA[2:local 1]]></DataTag>
<Description><![CDATA[skipping]]></Description>
</Message>
+<Message type="qdebug" file="" line="0">
+ <DataTag><![CDATA[2:local 1]]></DataTag>
+ <Description><![CDATA[cleanup skipSingle local 1 ]]></Description>
+</Message>
+<Message type="qdebug" file="" line="0">
+ <DataTag><![CDATA[2:local 2]]></DataTag>
+ <Description><![CDATA[init skipSingle local 2 ]]></Description>
+</Message>
+<Message type="qdebug" file="" line="0">
+ <DataTag><![CDATA[2:local 2]]></DataTag>
+ <Description><![CDATA[global: true local: true ]]></Description>
+</Message>
+<Message type="qdebug" file="" line="0">
+ <DataTag><![CDATA[2:local 2]]></DataTag>
+ <Description><![CDATA[cleanup skipSingle local 2 ]]></Description>
+</Message>
<Incident type="pass" file="" line="0" />
</TestFunction>
<TestFunction name="cleanupTestCase">
+<Message type="qdebug" file="" line="0">
+ <Description><![CDATA[cleanupTestCase cleanupTestCase (null) ]]></Description>
+</Message>
<Incident type="pass" file="" line="0" />
</TestFunction>
</TestCase>