Commit a74fe200 authored by Philip Withnall's avatar Philip Withnall

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's avatarPhilip Withnall <withnall@endlessm.com>
parent 5a8b02ca
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment