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>
25 lines
1.0 KiB
XML
25 lines
1.0 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<testsuite errors="0" failures="3" tests="4" name="tst_DateTime">
|
|
<properties>
|
|
<property value="@INSERT_QT_VERSION_HERE@" name="QTestVersion"/>
|
|
<property value="@INSERT_QT_VERSION_HERE@" name="QtVersion"/>
|
|
<property value="" name="QtBuild"/>
|
|
</properties>
|
|
<testcase result="pass" name="initTestCase"/>
|
|
<testcase result="fail" name="dateTime">
|
|
<failure message="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]" result="fail"/>
|
|
</testcase>
|
|
<testcase result="fail" name="qurl">
|
|
<failure tag="empty rhs" message="Compared values are not the same
|
|
Actual (operandA): http://example.com
|
|
Expected (operandB): Invalid URL: " result="fail"/>
|
|
<failure tag="empty lhs" message="Compared values are not the same
|
|
Actual (operandA): Invalid URL:
|
|
Expected (operandB): http://example.com" result="fail"/>
|
|
</testcase>
|
|
<testcase result="pass" name="cleanupTestCase"/>
|
|
<system-err/>
|
|
</testsuite>
|