]> mj.ucw.cz Git - libucw.git/commitdiff
Tests: xtypes-test sets an explicit timezone
authorMartin Mares <mj@ucw.cz>
Mon, 11 Feb 2019 11:35:15 +0000 (12:35 +0100)
committerMartin Mares <mj@ucw.cz>
Mon, 11 Feb 2019 11:35:15 +0000 (12:35 +0100)
Its output, which is checked in xtypes-test.t, depends on the current TZ.

ucw/xtypes-test.c

index a0f4acbf8a50ce972b3a925562acd8643022842e..b8cbe32a6df6a9a96c100160fea8d78511fa7e0a 100644 (file)
@@ -202,6 +202,7 @@ static void test_timestamp_parse_errors(struct fastbuf *out)
 
 int main(void)
 {
+  setenv("TZ", "Europe/Prague", 1);
   struct fastbuf *out;
   out = bfdopen_shared(1, 4096);