qt5base-lts/tests/auto/testlib/selftests/expected_subtest.xunitxml
Jason McDonald 01ece201ab Split subtest selftest
This test was attempting to verify two completely unrelated things, so
this commit splits it into two tests.

Also, printf calls are replaced by qDebug so that the test does not
bypass the testlib loggers.

Change-Id: I1a202af38ce2c69690a32d93405ba604ec6cabee
Reviewed-on: http://codereview.qt-project.org/5178
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
2011-09-20 08:46:18 +02:00

88 lines
3.8 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<testsuite errors="31" failures="2" tests="5" name="tst_Subtest">
<properties>
<property value="@INSERT_QT_VERSION_HERE@" name="QTestVersion"/>
<property value="@INSERT_QT_VERSION_HERE@" name="QtVersion"/>
</properties>
<testcase result="pass" name="initTestCase">
<!-- message="initTestCase initTestCase (null) " type="qdebug" -->
</testcase>
<testcase result="pass" name="test1">
<!-- message="init test1 (null) " type="qdebug" -->
<!-- message="test1 test1 (null) " type="qdebug" -->
<!-- message="cleanup test1 (null) " type="qdebug" -->
</testcase>
<testcase result="pass" name="test2">
<!-- message="test2_data test2 (null) " type="qdebug" -->
<!-- message="test2_data end " type="qdebug" -->
<!-- tag="data0" message="init test2 data0 " type="qdebug" -->
<!-- tag="data0" message="test2 test2 data0 " type="qdebug" -->
<!-- tag="data0" message="test2 end " type="qdebug" -->
<!-- tag="data0" message="cleanup test2 data0 " type="qdebug" -->
<!-- tag="data1" message="init test2 data1 " type="qdebug" -->
<!-- tag="data1" message="test2 test2 data1 " type="qdebug" -->
<!-- tag="data1" message="test2 end " type="qdebug" -->
<!-- tag="data1" message="cleanup test2 data1 " type="qdebug" -->
<!-- tag="data2" message="init test2 data2 " type="qdebug" -->
<!-- tag="data2" message="test2 test2 data2 " type="qdebug" -->
<!-- tag="data2" message="test2 end " type="qdebug" -->
<!-- tag="data2" message="cleanup test2 data2 " type="qdebug" -->
</testcase>
<testcase result="fail" name="test3">
<!-- message="test3_data test3 (null) " type="qdebug" -->
<!-- message="test3_data end " type="qdebug" -->
<!-- tag="data0" message="init test3 data0 " type="qdebug" -->
<!-- tag="data0" message="test2 test3 data0 " type="qdebug" -->
<!-- tag="data0" message="test2 end " type="qdebug" -->
<!-- tag="data0" message="cleanup test3 data0 " type="qdebug" -->
<!-- tag="data1" message="init test3 data1 " type="qdebug" -->
<!-- tag="data1" message="test2 test3 data1 " type="qdebug" -->
<failure tag="data1" message="Compared values are not the same
Actual (str): hello1
Expected (QString(&quot;hello0&quot;)): hello0" result="fail"/>
<!-- tag="data1" message="cleanup test3 data1 " type="qdebug" -->
<!-- tag="data2" message="init test3 data2 " type="qdebug" -->
<!-- tag="data2" message="test2 test3 data2 " type="qdebug" -->
<failure tag="data2" message="Compared values are not the same
Actual (str): hello2
Expected (QString(&quot;hello0&quot;)): hello0" result="fail"/>
<!-- tag="data2" message="cleanup test3 data2 " type="qdebug" -->
</testcase>
<testcase result="pass" name="cleanupTestCase">
<!-- message="cleanupTestCase cleanupTestCase (null) " type="qdebug" -->
</testcase>
<system-err>
<![CDATA[initTestCase initTestCase (null) ]]>
<![CDATA[init test1 (null) ]]>
<![CDATA[test1 test1 (null) ]]>
<![CDATA[cleanup test1 (null) ]]>
<![CDATA[test2_data test2 (null) ]]>
<![CDATA[test2_data end ]]>
<![CDATA[init test2 data0 ]]>
<![CDATA[test2 test2 data0 ]]>
<![CDATA[test2 end ]]>
<![CDATA[cleanup test2 data0 ]]>
<![CDATA[init test2 data1 ]]>
<![CDATA[test2 test2 data1 ]]>
<![CDATA[test2 end ]]>
<![CDATA[cleanup test2 data1 ]]>
<![CDATA[init test2 data2 ]]>
<![CDATA[test2 test2 data2 ]]>
<![CDATA[test2 end ]]>
<![CDATA[cleanup test2 data2 ]]>
<![CDATA[test3_data test3 (null) ]]>
<![CDATA[test3_data end ]]>
<![CDATA[init test3 data0 ]]>
<![CDATA[test2 test3 data0 ]]>
<![CDATA[test2 end ]]>
<![CDATA[cleanup test3 data0 ]]>
<![CDATA[init test3 data1 ]]>
<![CDATA[test2 test3 data1 ]]>
<![CDATA[cleanup test3 data1 ]]>
<![CDATA[init test3 data2 ]]>
<![CDATA[test2 test3 data2 ]]>
<![CDATA[cleanup test3 data2 ]]>
<![CDATA[cleanupTestCase cleanupTestCase (null) ]]>
</system-err>
</testsuite>