mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
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:
parent
5a8b02cae6
commit
a74fe20064
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user