mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-08 18:36:17 +01:00
Merge branch 'wip/test_timeval_to_iso8601_overflow-skip-on-32-bit' into 'master'
tests/timer: Skip test_timeval_to_iso8601_overflow if we can't overflow a GTimeVal Closes #1509 See merge request GNOME/glib!299
This commit is contained in:
commit
5b7a16a3c6
@ -258,6 +258,12 @@ test_timeval_to_iso8601_overflow (void)
|
||||
GTimeVal val;
|
||||
gchar *out = NULL;
|
||||
|
||||
if ((glong) G_MAXINT == G_MAXLONG)
|
||||
{
|
||||
g_test_skip ("G_MAXINT == G_MAXLONG - we can't make g_time_val_to_iso8601() overflow.");
|
||||
return;
|
||||
}
|
||||
|
||||
g_unsetenv ("TZ");
|
||||
|
||||
val.tv_sec = G_MAXLONG;
|
||||
|
Loading…
Reference in New Issue
Block a user