diff --git a/testcode/replay.c b/testcode/replay.c index 2ba8d8044..375fe2653 100644 --- a/testcode/replay.c +++ b/testcode/replay.c @@ -968,17 +968,17 @@ void testbound_selftest(void) free(v); v = macro_process(store, NULL, "it is ${ctime 123456}"); - log_assert( v && strcmp(v, "it is Fri Jan 2 11:17:36 1970") == 0); + log_assert( v && strcmp(v, "it is Fri Jan 2 10:17:36 1970") == 0); free(v); r = macro_assign(store, "t1", "123456"); log_assert(r); v = macro_process(store, NULL, "it is ${ctime ${$t1}}"); - log_assert( v && strcmp(v, "it is Fri Jan 2 11:17:36 1970") == 0); + log_assert( v && strcmp(v, "it is Fri Jan 2 10:17:36 1970") == 0); free(v); v = macro_process(store, NULL, "it is ${ctime $t1}"); - log_assert( v && strcmp(v, "it is Fri Jan 2 11:17:36 1970") == 0); + log_assert( v && strcmp(v, "it is Fri Jan 2 10:17:36 1970") == 0); free(v); r = macro_assign(store, "x", "1"); diff --git a/testcode/testbound.c b/testcode/testbound.c index 8c71adf2a..b283c11d9 100644 --- a/testcode/testbound.c +++ b/testcode/testbound.c @@ -264,7 +264,7 @@ main(int argc, char* argv[]) struct replay_scenario* scen = NULL; /* we do not want the test to depend on the timezone */ - setenv("TZ", "GMT-1", 1); + (void)setenv("TZ", "UTC", 1); log_init(NULL, 0, NULL); log_info("Start of %s testbound program.", PACKAGE_STRING);