/GDateTime/strftime test fails with TZ=Africa/Monrovia
@pwithnall
Submitted by Philip Withnall Link to original bug (#793335)
Description
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
Version: 2.55.x