Code

Run all tests using TZ=UTC.
authorSebastian Harl <sh@tokkee.org>
Sat, 7 Dec 2013 15:06:16 +0000 (16:06 +0100)
committerSebastian Harl <sh@tokkee.org>
Sat, 7 Dec 2013 15:06:16 +0000 (16:06 +0100)
This will ensure consistent time formatting.

t/libsysdb_net_test.c
t/libsysdb_test.c

index aede0d6c00d2fd4ee0be1ca0145ed277848e5c70..320cfac2d5a466256926aae55c4d01505a32d7dd 100644 (file)
@@ -33,6 +33,7 @@
 
 #include <check.h>
 #include <stdio.h>
+#include <stdlib.h>
 
 int
 main(void)
@@ -48,6 +49,8 @@ main(void)
 #endif /* HAVE_FOPENCOOKIE */
        };
 
+       putenv("TZ=UTC");
+
        for (i = 0; i < SDB_STATIC_ARRAY_LEN(creators); ++i) {
                SRunner *sr;
                Suite *s;
index c21f0bee7785d05e3bde2039b10aa2eb5c58a948..ca2a22d01efd1c7f862dd8fedb1b6dea9a462086 100644 (file)
@@ -29,6 +29,7 @@
 
 #include <check.h>
 #include <stdio.h>
+#include <stdlib.h>
 
 int
 main(void)
@@ -45,6 +46,8 @@ main(void)
                { util_strbuf_suite, NULL },
        };
 
+       putenv("TZ=UTC");
+
        for (i = 0; i < SDB_STATIC_ARRAY_LEN(creators); ++i) {
                SRunner *sr;
                Suite *s;