21776e9260
The newer test logger did not produce the same light XML output as the logger that it replaced. In particular, it did not output the <DataTag> tag and it incorrectly nested a <Message> tag inside the <Incident> tag when a fatal error occured in a test. Unfortunately, it appears that the expected lightxml output for the selftests was produced by running tests using the newer logger, while the selftests did not use the older lightxml logger. Thus the errors were not detected by the selftests. This commit adds the older lightxml logger to the selftests, updates the expected test data accordingly, and modifies the newer lightxml logger to behave correctly. This last item is achieved by making the lightxml streamer copy most of the code from the xml streamer -- lightxml output is supposed to be same as xml, except for the omission of the root and <TestCase> tags. Change-Id: Ie6e1f69dd6000df2b9d0c5c8e2109fe7bbff3956 Reviewed-on: http://codereview.qt.nokia.com/3902 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
54 lines
2.2 KiB
Plaintext
54 lines
2.2 KiB
Plaintext
<Environment>
|
|
<QtVersion>@INSERT_QT_VERSION_HERE@</QtVersion>
|
|
<QTestVersion>@INSERT_QT_VERSION_HERE@</QTestVersion>
|
|
</Environment>
|
|
<TestFunction name="initTestCase">
|
|
<Incident type="pass" file="" line="0" />
|
|
</TestFunction>
|
|
<TestFunction name="testFunc1">
|
|
<Message type="warn" file="" line="0">
|
|
<Description><![CDATA[just a QWARN() !]]></Description>
|
|
</Message>
|
|
<Incident type="pass" file="" line="0" />
|
|
</TestFunction>
|
|
<TestFunction name="testFunc2">
|
|
<Message type="qdebug" file="" line="0">
|
|
<Description><![CDATA[a qDebug() call with comment-ending stuff -->]]></Description>
|
|
</Message>
|
|
<Incident type="fail" file="/local/user_builds/qt/4.6/tests/auto/selftests/xunit/tst_xunit.cpp" line="74">
|
|
<Description><![CDATA[Compared values are not the same
|
|
Actual (2): 2
|
|
Expected (3): 3]]></Description>
|
|
</Incident>
|
|
</TestFunction>
|
|
<TestFunction name="testFunc3">
|
|
<Message type="skip" file="/local/user_builds/qt/4.6/tests/auto/selftests/xunit/tst_xunit.cpp" line="79">
|
|
<Description><![CDATA[skipping this function!]]></Description>
|
|
</Message>
|
|
</TestFunction>
|
|
<TestFunction name="testFunc4">
|
|
<Incident type="fail" file="/local/user_builds/qt/4.6/tests/auto/selftests/xunit/tst_xunit.cpp" line="84">
|
|
<Description><![CDATA[a forced failure!]]></Description>
|
|
</Incident>
|
|
</TestFunction>
|
|
<TestFunction name="testFunc5">
|
|
<Incident type="xfail" file="/local/user_builds/qt/4.6/tests/auto/selftests/xunit/tst_xunit.cpp" line="98">
|
|
<Description><![CDATA[this failure is expected]]></Description>
|
|
</Incident>
|
|
<Incident type="pass" file="" line="0" />
|
|
</TestFunction>
|
|
<TestFunction name="testFunc6">
|
|
<Incident type="xfail" file="/local/user_builds/qt/4.6/tests/auto/selftests/xunit/tst_xunit.cpp" line="104">
|
|
<Description><![CDATA[this failure is also expected]]></Description>
|
|
</Incident>
|
|
<Incident type="pass" file="" line="0" />
|
|
</TestFunction>
|
|
<TestFunction name="testFunc7">
|
|
<Incident type="xpass" file="/local/user_builds/qt/4.6/tests/auto/selftests/xunit/tst_xunit.cpp" line="110">
|
|
<Description><![CDATA['true' returned FALSE. ()]]></Description>
|
|
</Incident>
|
|
</TestFunction>
|
|
<TestFunction name="cleanupTestCase">
|
|
<Incident type="pass" file="" line="0" />
|
|
</TestFunction>
|