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>
This commit is contained in:
Philip Withnall 2017-07-05 16:35:58 +01:00
parent 5a8b02cae6
commit a74fe20064

View File

@ -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);
}
}