[patch] KTimezone tests

Brad Hards bradh at frogmouth.net
Sun Dec 25 03:34:20 GMT 2005


On Sunday 25 December 2005 07:17 am, David Jarvie wrote:
> The patch wasn't ideal (although it wasn't wrong), but thanks for pointing
> out the errors. I've fixed the compile errors, and also automated a couple
> of manual verifications in the test.
Did you forget to commit changes to ktimezonetest.h? It won't link for
me unless I delete the declaration for utc_data().

After that, it still doesn't pass though:
********* Start testing of KTimezonesTest *********
Config: Using QTest library 4.1.0, Qt 4.1.0-snapshot-20051223
PASS   : KTimezonesTest::initTestCase()
PASS   : KTimezonesTest::ktimezones()
PASS   : KTimezonesTest::utc()
PASS   : KTimezonesTest::local()
PASS   : KTimezonesTest::zone()
WARNING: KTimezonesTest::zoneinfoDir() Please manually verify that the zoneinfo directory is "/usr/share/zoneinfo"
PASS   : KTimezonesTest::zoneinfoDir()
qttest: Can't open /etc/timezone
qttest: Can't open /etc/default/init
FAIL!  : KTimezonesTest::currentOffset() Compared values are not the same
   Actual (local->currentOffset(Qt::UTC)): -18000
   Expected (offset): 39600
   Loc: [/home/bradh/coding/KDE/kdelibs/kdecore/tests/ktimezonestest.cpp(125)]
PASS   : KTimezonesTest::offsetAtUTC()
PASS   : KTimezonesTest::offsetAtZoneTime()
PASS   : KTimezonesTest::abbreviation()
PASS   : KTimezonesTest::toUTC()
PASS   : KTimezonesTest::toZoneTime()
PASS   : KTimezonesTest::convert()
PASS   : KTimezonesTest::tzfile()
PASS   : KTimezonesTest::tzfileOffsetAtZoneTime()
PASS   : KTimezonesTest::tzfileUTCOffsets()
PASS   : KTimezonesTest::cleanupTestCase()
Totals: 16 passed, 1 failed, 0 skipped
********* Finished testing of KTimezonesTest *********


Brad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20051225/074e7b02/attachment.sig>


More information about the kde-core-devel mailing list