20480070a6
Selftests for testlib fail when executed in UTC timezone because local and UTC are the same, but expected to be different. A custom timezone is used instead. Debug output of qCompare does only handle local and non-local timezones, using new Qt5 features allows to show the correct timezone in format string. Change-Id: I753884a12370952b7b62a90d62896db4f2d3d1b4 Reviewed-by: Jason McDonald <macadder1@gmail.com>
44 lines
1.5 KiB
Plaintext
44 lines
1.5 KiB
Plaintext
<Environment>
|
|
<QtVersion>@INSERT_QT_VERSION_HERE@</QtVersion>
|
|
<QtBuild/>
|
|
<QTestVersion>@INSERT_QT_VERSION_HERE@</QTestVersion>
|
|
</Environment>
|
|
<TestFunction name="initTestCase">
|
|
<Incident type="pass" file="" line="0" />
|
|
<Duration msecs="0"/>
|
|
</TestFunction>
|
|
<TestFunction name="dateTime">
|
|
<Incident type="fail" file="tst_datetime.cpp" line="65">
|
|
<Description><![CDATA[Compared values are not the same
|
|
Actual (local): 2000/05/03 04:03:04.000[UTC+00:02]
|
|
Expected (utc) : 2000/05/03 04:03:04.000[UTC]]]></Description>
|
|
</Incident>
|
|
<Duration msecs="0"/>
|
|
</TestFunction>
|
|
<TestFunction name="qurl">
|
|
<Incident type="pass" file="" line="0">
|
|
<DataTag><![CDATA[empty urls]]></DataTag>
|
|
</Incident>
|
|
<Incident type="fail" file="tst_datetime.cpp" line="73">
|
|
<DataTag><![CDATA[empty rhs]]></DataTag>
|
|
<Description><![CDATA[Compared values are not the same
|
|
Actual (operandA): http://example.com
|
|
Expected (operandB): Invalid URL: ]]></Description>
|
|
</Incident>
|
|
<Incident type="fail" file="tst_datetime.cpp" line="73">
|
|
<DataTag><![CDATA[empty lhs]]></DataTag>
|
|
<Description><![CDATA[Compared values are not the same
|
|
Actual (operandA): Invalid URL:
|
|
Expected (operandB): http://example.com]]></Description>
|
|
</Incident>
|
|
<Incident type="pass" file="" line="0">
|
|
<DataTag><![CDATA[same urls]]></DataTag>
|
|
</Incident>
|
|
<Duration msecs="0"/>
|
|
</TestFunction>
|
|
<TestFunction name="cleanupTestCase">
|
|
<Incident type="pass" file="" line="0" />
|
|
<Duration msecs="0"/>
|
|
</TestFunction>
|
|
<Duration msecs="0"/>
|