After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 793335 - /GDateTime/strftime test fails with TZ=Africa/Monrovia
/GDateTime/strftime test fails with TZ=Africa/Monrovia
Status: RESOLVED OBSOLETE
Product: glib
Classification: Platform
Component: datetime
2.55.x
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2018-02-09 14:39 UTC by Philip Withnall
Modified: 2018-05-24 20:12 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Philip Withnall 2018-02-09 14:39:26 UTC
TZ=Africa/Monrovia /opt/gnome/build/glib/glib/tests/gdatetime -p /GDateTime/strftime
/GDateTime/strftime: **
GLib:ERROR:/opt/gnome/source/glib/glib/tests/gdatetime.c:1816:test_strftime: assertion failed (c_str == dt_str): ("aWed AWednesday bDec BDecember cWed Dec 31 23:15:30 1969 C19 d31 e31 F1969-12-31 g70 G1970 hDec H23 I11 j365 m12 M15 n\n pPM r11:15:30 PM R23:15 S30 t\t T23:15:30 u3 V01 w3 x12/31/69 X23:15:30 y69 Y1969 z-0044 ZMMT %" == "aWed AWednesday bDec BDecember cWed Dec 31 23:15:30 1969 C19 d31 e31 F1969-12-31 g70 G1970 hDec H23 I11 j365 m12 M15 n\n pPM r11:15:30 PM R23:15 S30 t\t T23:15:30 u3 V01 w3 x12/31/69 X23:15:30 y69 Y1969 z+0044 ZMMT %")
Aborted (core dumped)

The difference is right at the end: `z-0044` vs `z+0044`. I need to investigate.

This bug can also track adding a mode to the GDateTime tests to run all of the tests in all of the timezones, since there have been quite a few bugs which are timezone-specific. So far, I’ve been using the following (which takes several tens of minutes, so this is one for -m slow):

timedatectl list-timezones | while read line; do echo "$line"; TZ="$line" /opt/gnome/build/glib/glib/tests/gdatetime; done
Comment 1 GNOME Infrastructure Team 2018-05-24 20:12:11 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/1337.