Merge branch 'cherry-pick-f697f6aa' into 'glib-2-58'

tests/timer: Skip test_timeval_to_iso8601_overflow if we can't overflow a GTimeVal

See merge request GNOME/glib!301
This commit is contained in:
Iain Lane 2018-09-04 09:58:38 +00:00
commit 7086baebe0

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;