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:

committed by
Jeffrey Altman

parent
aad5c71014
commit
f1b27d77cd
@@ -280,7 +280,7 @@ test-run:
|
|||||||
-test-mini_inetd.exe
|
-test-mini_inetd.exe
|
||||||
-dirent-test.exe
|
-dirent-test.exe
|
||||||
-base64-test.exe
|
-base64-test.exe
|
||||||
-getaddrinfo-test.exe
|
-getaddrinfo-test.exe www.h5l.org http
|
||||||
-getifaddrs-test.exe
|
-getifaddrs-test.exe
|
||||||
-hex-test.exe
|
-hex-test.exe
|
||||||
-test-readenv.exe
|
-test-readenv.exe
|
||||||
|
@@ -129,6 +129,8 @@ main(int argc, char **argv)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rk_SOCK_INIT();
|
||||||
|
|
||||||
argc -= optidx;
|
argc -= optidx;
|
||||||
argv += optidx;
|
argv += optidx;
|
||||||
|
|
||||||
@@ -143,5 +145,6 @@ main(int argc, char **argv)
|
|||||||
|
|
||||||
doit (nodename, argv[i+1]);
|
doit (nodename, argv[i+1]);
|
||||||
}
|
}
|
||||||
|
rk_SOCK_EXIT();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user