From a74fe20064d0f5f1ad8f191b2f988c3d11776054 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 5 Jul 2017 16:35:58 +0100 Subject: [PATCH] tests: Drop local timezone GTimeVal overflow check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We can’t reasonably control the local timezone in the test environment, so drop some assertions which were assuming the local timezone offset was not big enough to cause an overflow in the GTimeVal handling for GDateTime. Signed-off-by: Philip Withnall --- glib/tests/gdatetime.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/glib/tests/gdatetime.c b/glib/tests/gdatetime.c index 4cb5a0a44..6ddad3a83 100644 --- a/glib/tests/gdatetime.c +++ b/glib/tests/gdatetime.c @@ -433,10 +433,6 @@ test_GDateTime_new_from_timeval_overflow (void) g_assert_nonnull (dt); g_date_time_unref (dt); - dt = g_date_time_new_from_timeval_local (&tv); - g_assert_nonnull (dt); - g_date_time_unref (dt); - if (tv.tv_sec < G_MAXLONG) { tv.tv_sec++; @@ -444,9 +440,6 @@ test_GDateTime_new_from_timeval_overflow (void) dt = g_date_time_new_from_timeval_utc (&tv); g_assert_null (dt); - - dt = g_date_time_new_from_timeval_local (&tv); - g_assert_null (dt); } }