mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
Make timeval tests independent of the environment
Some of the tested formats are locale-dependent, so unset the TZ environment variable before testing them.
This commit is contained in:
parent
cda4080af0
commit
6106e38c8e
@ -152,6 +152,8 @@ test_timeval_from_iso8601 (void)
|
||||
gboolean success;
|
||||
gint i;
|
||||
|
||||
g_unsetenv ("TZ");
|
||||
|
||||
for (i = 0; i < G_N_ELEMENTS (tests); i++)
|
||||
{
|
||||
out.tv_sec = 0;
|
||||
@ -183,6 +185,8 @@ test_timeval_to_iso8601 (void)
|
||||
GTimeVal val;
|
||||
gboolean ret;
|
||||
|
||||
g_unsetenv ("TZ");
|
||||
|
||||
for (i = 0; i < G_N_ELEMENTS (tests); i++)
|
||||
{
|
||||
out = g_time_val_to_iso8601 (&(tests[i].val));
|
||||
|
Loading…
Reference in New Issue
Block a user