[patch] KTimezone tests

David Jarvie lists at astrojar.org.uk
Wed Dec 28 11:58:46 GMT 2005


On Sunday 25 December 2005 03:34, Brad Hards wrote:
> 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().

You're right - done now.

> 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)]

What system are you running?
Do you have a /etc/localtime file? If so, is it a link or a normal file?
Is /usr/share/zoneinfo non-empty?
What time zone is displayed when you type 'date'?

-- 
David Jarvie.
KAlarm author and maintainer.
http://www.astrojar.org.uk/linux/kalarm.html




More information about the kde-core-devel mailing list