mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 07:26:15 +01:00
glib/tests/asyncqueue.c: skip test_async_queue_timed in 2038 or later
This commit is contained in:
parent
5216e8c7d5
commit
9bdb19b821
@ -220,6 +220,15 @@ test_async_queue_timed (void)
|
||||
gint64 start, end, diff;
|
||||
gpointer val;
|
||||
|
||||
GDateTime *dt = g_date_time_new_now_utc ();
|
||||
int year = g_date_time_get_year (dt);
|
||||
g_date_time_unref (dt);
|
||||
if (year >= 2038)
|
||||
{
|
||||
g_test_skip ("Test relies on GTimeVal which is Y2038 unsafe and will cause a failure.");
|
||||
return;
|
||||
}
|
||||
|
||||
g_get_current_time (&tv);
|
||||
if (g_test_undefined ())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user