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:
Iain Lane 2018-09-04 09:42:35 +00:00
commit 5b7a16a3c6

View File

@ -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;