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
This commit is contained in:
Rod Widdowson
2019-03-25 13:15:41 +00:00
committed by Jeffrey Altman
parent aad5c71014
commit f1b27d77cd
2 changed files with 4 additions and 1 deletions

View File

@@ -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

View File

@@ -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;
}