539553a572
Add an enumeration for system-out and alog element for it. Redirect the messages types that are not warnings/errors to this element. For compatibility, write it out only if it is not empty. Rename enumerations and members accordingly. [ChangeLog][QtTestLib] In JUnit XML, output that is not a warning/error is now logged under <system-out> instead of <system-err>. Fixes: QTBUG-86540 Change-Id: I55598eafa7dafa486ac5a8221029c332ff47413b Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
46 lines
2.7 KiB
XML
46 lines
2.7 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<testsuite name="tst_StrCmp" timestamp="@TEST_START_TIME@" tests="8" failures="5" errors="3" time="@TEST_DURATION@">
|
|
<properties>
|
|
<property name="QTestVersion" value="@INSERT_QT_VERSION_HERE@"/>
|
|
<property name="QtVersion" value="@INSERT_QT_VERSION_HERE@"/>
|
|
<property name="QtBuild" value=""/>
|
|
</properties>
|
|
<testcase name="initTestCase" result="pass" time="@TEST_DURATION@"/>
|
|
<testcase name="compareCharStars" result="pass" time="@TEST_DURATION@"/>
|
|
<testcase name="compareByteArray" result="fail" time="@TEST_DURATION@">
|
|
<!-- type="info" message="Next test should fail" -->
|
|
<!-- type="info" message="Next test should fail" -->
|
|
<!-- type="info" message="Next test should fail" -->
|
|
<failure result="fail" message="Compared values are not the same
|
|
Actual (a): "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"...
|
|
Expected (b): "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"..."/>
|
|
</testcase>
|
|
<testcase name="failByteArray" result="fail" time="@TEST_DURATION@">
|
|
<failure result="fail" message="Compared values are not the same
|
|
Actual (QByteArray("abc")): "abc"
|
|
Expected (QByteArray("cba")): "cba""/>
|
|
</testcase>
|
|
<testcase name="failByteArrayNull" result="fail" time="@TEST_DURATION@">
|
|
<failure result="fail" message="Compared values are not the same
|
|
Actual (QByteArray("foo")): "foo"
|
|
Expected (QByteArray()) : """/>
|
|
</testcase>
|
|
<testcase name="failByteArrayEmpty" result="fail" time="@TEST_DURATION@">
|
|
<failure result="fail" message="Compared values are not the same
|
|
Actual (QByteArray("")) : ""
|
|
Expected (QByteArray("foo")): "foo""/>
|
|
</testcase>
|
|
<testcase name="failByteArraySingleChars" result="fail" time="@TEST_DURATION@">
|
|
<failure result="fail" message="Compared values are not the same
|
|
Actual (QByteArray("6")): "6"
|
|
Expected (QByteArray("7")): "7""/>
|
|
</testcase>
|
|
<testcase name="cleanupTestCase" result="pass" time="@TEST_DURATION@"/>
|
|
<system-out>
|
|
<![CDATA[Next test should fail]]>
|
|
<![CDATA[Next test should fail]]>
|
|
<![CDATA[Next test should fail]]>
|
|
</system-out>
|
|
<system-err/>
|
|
</testsuite>
|