GNOME Bugzilla – Bug 670254
glib-2.30.2: Fails /GDateTime/new_from_unix test
Last modified: 2012-04-04 18:52:08 UTC
Created attachment 207821 [details] build.log: /GDateTime/new_from_unix test fails on amd64. As the summary says, it fails the /GDateTime/new_from_unix test on, which 2.28.8 passes. I'm running a (mostly) stable Gentoo 64-bit system.
can you run tests/gdatetime by hand to see which assertion is failing? also, what is the output of "date" on your computer?
I'll give it a go soon. $ date Fri Feb 24 08:45:19 EST 2012
I encountered this myself on glib-2.30.3, and narrowed it down to daylight saving. Editing glib/glib/tests/gdatetime.c and adding the line 'tm.tm_dst = -1;' just before the call to mktime() solves the problem. (Not providing a patch because I'm using a later version).
Yup, that fixes it. Thanks. (The test was unintentionally depending on January 1 being not during DST, which of course would fail in Australia.)