From f1b27d77cd88033f86c54ff74d92f188a3a54fac Mon Sep 17 00:00:00 2001 From: Rod Widdowson Date: Mon, 25 Mar 2019 13:15:41 +0000 Subject: [PATCH] Windows: Make getaddrinfo-test work Before we call gettaddrinfo we have to call rx_SOCK_INIT In order to exercise the test we have to supply parameters to the command line --- lib/roken/NTMakefile | 2 +- lib/roken/getaddrinfo-test.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/roken/NTMakefile b/lib/roken/NTMakefile index c03a3642e..1445ed9dc 100644 --- a/lib/roken/NTMakefile +++ b/lib/roken/NTMakefile @@ -280,7 +280,7 @@ test-run: -test-mini_inetd.exe -dirent-test.exe -base64-test.exe - -getaddrinfo-test.exe + -getaddrinfo-test.exe www.h5l.org http -getifaddrs-test.exe -hex-test.exe -test-readenv.exe diff --git a/lib/roken/getaddrinfo-test.c b/lib/roken/getaddrinfo-test.c index a2b726f9a..d5aaeb2e0 100644 --- a/lib/roken/getaddrinfo-test.c +++ b/lib/roken/getaddrinfo-test.c @@ -129,6 +129,8 @@ main(int argc, char **argv) return 0; } + rk_SOCK_INIT(); + argc -= optidx; argv += optidx; @@ -143,5 +145,6 @@ main(int argc, char **argv) doit (nodename, argv[i+1]); } + rk_SOCK_EXIT(); return 0; }