]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
tests/util/ktime-t.c: Specify EST offset in TZ
authorAnders Kaseorg <andersk@mit.edu>
Sun, 9 Oct 2016 10:39:12 +0000 (06:39 -0400)
committerStephan Wiesand <stephan.wiesand@desy.de>
Wed, 19 Oct 2016 13:22:30 +0000 (09:22 -0400)
This fixes test failures observed on new Debian build servers that no
longer install tzdata by default.  As the tests expect, EST is defined
as UTC−05:00 with no daylight saving time.

Reviewed-on: https://gerrit.openafs.org/12414
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit e17cd5df703b8a924591f92c76636dd9e0d9eaf9)

Change-Id: I392bfb2bb3d2bbf8ff73a87650ca0d7e1268b356
Reviewed-on: https://gerrit.openafs.org/12415
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
tests/util/ktime-t.c

index d9793bbef052d8c4f3b319520483a7038b8b3d73..d35649a61398682d3b887bcbc74f6384dbf25ab3 100644 (file)
@@ -73,7 +73,7 @@ main(void)
 
     /* should do timezone and daylight savings time correction so this program
      * work in other than EST */
-    putenv("TZ=EST");
+    putenv("TZ=EST+5");
 
     for (tt = testTimes; tt->time; tt++) {
        temp = 0;