mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-04 10:16:17 +01:00
Improve test coverage of gtimezone.c
This commit is contained in:
parent
f0b14653f8
commit
ae96118395
@ -1105,6 +1105,22 @@ test_z (void)
|
|||||||
g_free (p);
|
g_free (p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
test_refresh (void)
|
||||||
|
{
|
||||||
|
GTimeZone *zone;
|
||||||
|
|
||||||
|
zone = g_time_zone_new (NULL);
|
||||||
|
g_assert (zone != NULL);
|
||||||
|
g_time_zone_unref (zone);
|
||||||
|
|
||||||
|
g_time_zone_refresh_local ();
|
||||||
|
|
||||||
|
zone = g_time_zone_new (NULL);
|
||||||
|
g_assert (zone != NULL);
|
||||||
|
g_time_zone_unref (zone);
|
||||||
|
}
|
||||||
|
|
||||||
gint
|
gint
|
||||||
main (gint argc,
|
main (gint argc,
|
||||||
gchar *argv[])
|
gchar *argv[])
|
||||||
@ -1151,6 +1167,7 @@ main (gint argc,
|
|||||||
g_test_add_func ("/GDateTime/dst", test_GDateTime_dst);
|
g_test_add_func ("/GDateTime/dst", test_GDateTime_dst);
|
||||||
g_test_add_func ("/GDateTime/test_z", test_z);
|
g_test_add_func ("/GDateTime/test_z", test_z);
|
||||||
g_test_add_func ("/GDateTime/test-all-dates", test_all_dates);
|
g_test_add_func ("/GDateTime/test-all-dates", test_all_dates);
|
||||||
|
g_test_add_func ("/GDateTime/refresh", test_refresh);
|
||||||
|
|
||||||
return g_test_run ();
|
return g_test_run ();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user