about summary refs log tree commit diff
path: root/timezone/test-tz.c
diff options
context:
space:
mode:
Diffstat (limited to 'timezone/test-tz.c')
-rw-r--r--timezone/test-tz.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/timezone/test-tz.c b/timezone/test-tz.c
index 6a330a5021..28e1e37010 100644
--- a/timezone/test-tz.c
+++ b/timezone/test-tz.c
@@ -7,11 +7,11 @@ struct {
   const char *	env;
   time_t	expected;
 } tests[] = {
-  {"TZ=MST",		832935315},
-  {"TZ=",		832910115},
-  {"TZ=:UTC",		832910115},
-  {"TZ=UTC",		832910115},
-  {"TZ=UTC0",		832910115}
+  {"MST",	832935315},
+  {"",		832910115},
+  {":UTC",	832910115},
+  {"UTC",	832910115},
+  {"UTC0",	832910115}
 };
 
 
@@ -34,7 +34,7 @@ main (int argc, char ** argv)
 
   for (i = 0; i < sizeof (tests) / sizeof (tests[0]); ++i)
     {
-      putenv (tests[i].env);
+      setenv ("TZ", tests[i].env);
       t = mktime (&tm);
       if (t != tests[i].expected)
 	{