f64f428b81
Prior to this commit, when an unexpected pass occurred the test output showed the message "XPASS : tst_foo::function() 'expr' returned FALSE", where the problem was actually that the expression evaluated to true when it was expected to be false. This commit changes the output to make it clear that the expression evaluated to true unexpectedly. Task-number: QTBUG-22118 Change-Id: Id22c178073d3b75789675ca37a8ef019029b1f91 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
57 lines
2.3 KiB
XML
57 lines
2.3 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<TestCase name="tst_Xunit">
|
|
<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="/home/user/dev/qt5/qtbase/tests/auto/testlib/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="/home/user/dev/qt5/qtbase/tests/auto/testlib/selftests/xunit/tst_xunit.cpp" line="79">
|
|
<Description><![CDATA[skipping this function!]]></Description>
|
|
</Message>
|
|
</TestFunction>
|
|
<TestFunction name="testFunc4">
|
|
<Incident type="fail" file="/home/user/dev/qt5/qtbase/tests/auto/testlib/selftests/xunit/tst_xunit.cpp" line="84">
|
|
<Description><![CDATA[a forced failure!]]></Description>
|
|
</Incident>
|
|
</TestFunction>
|
|
<TestFunction name="testFunc5">
|
|
<Incident type="xfail" file="/home/user/dev/qt5/qtbase/tests/auto/testlib/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="/home/user/dev/qt5/qtbase/tests/auto/testlib/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="/home/user/dev/qt5/qtbase/tests/auto/testlib/selftests/xunit/tst_xunit.cpp" line="110">
|
|
<Description><![CDATA['true' returned TRUE unexpectedly. ()]]></Description>
|
|
</Incident>
|
|
</TestFunction>
|
|
<TestFunction name="cleanupTestCase">
|
|
<Incident type="pass" file="" line="0" />
|
|
</TestFunction>
|
|
</TestCase>
|