From c81ae5d18244ac91cb964024ed17621b4c73a974 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sat, 7 Dec 2013 16:06:16 +0100 Subject: [PATCH] Run all tests using TZ=UTC. This will ensure consistent time formatting. --- t/libsysdb_net_test.c | 3 +++ t/libsysdb_test.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/t/libsysdb_net_test.c b/t/libsysdb_net_test.c index aede0d6..320cfac 100644 --- a/t/libsysdb_net_test.c +++ b/t/libsysdb_net_test.c @@ -33,6 +33,7 @@ #include #include +#include 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; diff --git a/t/libsysdb_test.c b/t/libsysdb_test.c index c21f0be..ca2a22d 100644 --- a/t/libsysdb_test.c +++ b/t/libsysdb_test.c @@ -29,6 +29,7 @@ #include #include +#include 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; -- 2.30.2