[Digikam-devel] Unit Tests

Michael G. Hansen mike at mghansen.de
Thu Dec 29 19:48:24 GMT 2011


On 12/29/2011 03:36 PM, Michael G. Hansen wrote:
> Hi Andi,
>
> On 12/29/2011 01:37 PM, Andi Clemens wrote:
>> I ran the unittest suite and 7 tests failed.
>> I took a look at some of them and came across the test
>> "test_kmlexport_gpxparsing", which I don't understand.
>> The test "testQDateTimeParsing" doesn't make sense to me, we test Qt
>> functions (why?) and always fail when comparing a time with
>> QCOMPARE(time1.time(), QTime(0, 0, 0));
>> which is always false.
>
> yes, we do test Qt functions here because the behavior of one of the
> parsing functions changed with a version change in Qt. There was a
> change in how they interpret the timezone offset. I will adapt them to
> what the current version of Qt does.

Done!

Michael




More information about the Digikam-devel mailing list