mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-30 18:29:28 -05:00
Fixup ctime test.
This commit is contained in:
parent
db5bb6270b
commit
8a25ca9651
1 changed files with 2 additions and 0 deletions
|
|
@ -1000,6 +1000,7 @@ void testbound_selftest(void)
|
|||
tb_assert( v && strcmp(v, "1ww2ww3") == 0);
|
||||
free(v);
|
||||
|
||||
#ifndef USE_WINSOCK
|
||||
v = macro_process(store, NULL, "it is ${ctime 123456}");
|
||||
tb_assert( v && strcmp(v, "it is Fri Jan 2 10:17:36 1970") == 0);
|
||||
free(v);
|
||||
|
|
@ -1013,6 +1014,7 @@ void testbound_selftest(void)
|
|||
v = macro_process(store, NULL, "it is ${ctime $t1}");
|
||||
tb_assert( v && strcmp(v, "it is Fri Jan 2 10:17:36 1970") == 0);
|
||||
free(v);
|
||||
#endif /* WINSOCK */
|
||||
|
||||
r = macro_assign(store, "x", "1");
|
||||
tb_assert(r);
|
||||
|
|
|
|||
Loading…
Reference in a new issue