mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-10 12:55:48 +01:00
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:
commit
7086baebe0
@ -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…
x
Reference in New Issue
Block a user