rsmmr / hilti

**NOTE**: This is outdated and no longer maintained. There's a new version at https://github.com/zeek/spicy.
Other
40 stars 22 forks source link

Set fixed timezone for timezone-dependent tests #33

Closed dloss closed 7 years ago

dloss commented 7 years ago

Since mktime output depends on the local timezone, some tests failed when run in a different timezone as the original baseline (America/Los_Angeles):

$ date
Fri Jan 13 10:02:18 UTC 2017
$ btest -d spicy/libspicy/mktime.spicy
[  0%] spicy.libspicy.mktime ... failed
  % 'btest-diff output' failed unexpectedly (exit code 1)
  % cat .diag
  == File ===============================
  2000-01-02T03:04:05.000000000Z
  == Diff ===============================
  --- /tmp/test-diff.1901.output.baseline.tmp   2017-01-13 10:03:10.465994522 +0000
  +++ /tmp/test-diff.1901.output.tmp    2017-01-13 10:03:10.505964836 +0000
  @@ -1 +1 @@
  -2000-01-02T11:04:05.000000000Z
  +2000-01-02T03:04:05.000000000Z
  =======================================

  % cat .stderr

1 of 1 test failed