From: Sebastian Harl Date: Sat, 7 Dec 2013 15:06:16 +0000 (+0100) Subject: Run all tests using TZ=UTC. X-Git-Tag: sysdb-0.1.0~314^2~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c81ae5d18244ac91cb964024ed17621b4c73a974;p=sysdb.git Run all tests using TZ=UTC. This will ensure consistent time formatting. --- 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;