projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cda4080
)
Make timeval tests independent of the environment
author
Matthias Clasen
<mclasen@redhat.com>
Thu, 2 Jan 2014 02:39:51 +0000
(21:39 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 2 Jan 2014 02:41:16 +0000
(21:41 -0500)
Some of the tested formats are locale-dependent, so unset
the TZ environment variable before testing them.
glib/tests/timer.c
patch
|
blob
|
history
diff --git
a/glib/tests/timer.c
b/glib/tests/timer.c
index
960b841
..
d31dc94
100644
(file)
--- a/
glib/tests/timer.c
+++ b/
glib/tests/timer.c
@@
-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));