mirror of
https://https.git.savannah.gnu.org/git/gnulib.git
synced 2026-04-28 06:33:36 +00:00
getaddrinfo tests: Fix test failure on MSVC.
* tests/test-getaddrinfo.c: Include sockets.h. (main): Invoke gl_sockets_startup. * modules/getaddrinfo-tests (Depends-on): Add sockets.
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
2019-07-02 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
getaddrinfo tests: Fix test failure on MSVC.
|
||||
* tests/test-getaddrinfo.c: Include sockets.h.
|
||||
(main): Invoke gl_sockets_startup.
|
||||
* modules/getaddrinfo-tests (Depends-on): Add sockets.
|
||||
|
||||
2019-07-01 Hannes Müller <h.c.f.mueller@gmx.de>
|
||||
|
||||
poll: Fix type of timeout pointer passed to select() on mingw x86_64.
|
||||
|
||||
@@ -3,6 +3,7 @@ tests/signature.h
|
||||
tests/test-getaddrinfo.c
|
||||
|
||||
Depends-on:
|
||||
sockets
|
||||
inet_ntop
|
||||
strerror
|
||||
|
||||
|
||||
@@ -39,6 +39,8 @@ SIGNATURE_CHECK (getaddrinfo, int, (char const *, char const *,
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "sockets.h"
|
||||
|
||||
/* Whether to print debugging messages. */
|
||||
#define ENABLE_DEBUGGING 0
|
||||
|
||||
@@ -167,6 +169,8 @@ simple (char const *host, char const *service)
|
||||
|
||||
int main (void)
|
||||
{
|
||||
(void) gl_sockets_startup (SOCKETS_1_1);
|
||||
|
||||
return simple (HOST1, SERV1)
|
||||
+ simple (HOST2, SERV2)
|
||||
+ simple (HOST3, SERV3)
|
||||
|
||||
Reference in New Issue
Block a user