From: W.C.A. Wijngaards Date: Fri, 25 Jun 2021 13:27:51 +0000 (+0200) Subject: Analysis workflow, fixup ctime tests. X-Git-Tag: release-1.13.2rc1~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5e81763e530bf42f9c24499ca39670a13e7cb71c;p=thirdparty%2Funbound.git Analysis workflow, fixup ctime tests. --- diff --git a/testcode/replay.c b/testcode/replay.c index 37221eda3..2487c146f 100644 --- a/testcode/replay.c +++ b/testcode/replay.c @@ -999,33 +999,19 @@ void testbound_selftest(void) tb_assert( v && strcmp(v, "1ww2ww3") == 0); free(v); -//#ifndef USE_WINSOCK - printf("start of ctime tests\n"); v = macro_process(store, NULL, "it is ${ctime 123456}"); - printf("test for ctime 123456\n"); - printf("should be 'it is Fri Jan 2 10:17:36 1970'\n"); - printf("got '%s'\n", v); - //tb_assert( v && strcmp(v, "it is Fri Jan 2 10:17:36 1970") == 0); + tb_assert( v && strcmp(v, "it is Fri Jan 2 10:17:36 1970") == 0); free(v); r = macro_assign(store, "t1", "123456"); tb_assert(r); v = macro_process(store, NULL, "it is ${ctime ${$t1}}"); - printf("test2 for ctime 123456\n"); - printf("should be 'it is Fri Jan 2 10:17:36 1970'\n"); - printf("got '%s'\n", v); - //tb_assert( v && strcmp(v, "it is Fri Jan 2 10:17:36 1970") == 0); + tb_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}"); - printf("test3 for ctime 123456\n"); - printf("should be 'it is Fri Jan 2 10:17:36 1970'\n"); - printf("got '%s'\n", v); - //tb_assert( v && strcmp(v, "it is Fri Jan 2 10:17:36 1970") == 0); + tb_assert( v && strcmp(v, "it is Fri Jan 2 10:17:36 1970") == 0); free(v); - printf("end of ctime tests\n"); -//#endif -/* WINSOCK */ r = macro_assign(store, "x", "1"); tb_assert(r);