mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-31 22:23:39 +02: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:
@@ -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));
|
||||
|
Reference in New Issue
Block a user