[glib] tests: Drop local timezone GTimeVal overflow check



commit a74fe20064d0f5f1ad8f191b2f988c3d11776054
Author: Philip Withnall <withnall endlessm com>
Date:   Wed Jul 5 16:35:58 2017 +0100

    tests: Drop local timezone GTimeVal overflow check
    
    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 <withnall endlessm com>

 glib/tests/gdatetime.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/glib/tests/gdatetime.c b/glib/tests/gdatetime.c
index 4cb5a0a..6ddad3a 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);
     }
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]