diff options
author | Simon Josefsson <simon@josefsson.org> | 2009-02-27 09:23:52 +0100 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2009-02-27 09:23:52 +0100 |
commit | a13df3057a9d99f45a29fa874d4cc2a63bf8d7a0 (patch) | |
tree | 907c10d8576bed86fc0f1a6b78acc9c59b63b959 /gl/tests/test-getaddrinfo.c | |
parent | de49e9f7685d086d07f8595553c25ca2d501aeab (diff) | |
download | gnutls-a13df3057a9d99f45a29fa874d4cc2a63bf8d7a0.tar.gz |
Update gnulib files.
Diffstat (limited to 'gl/tests/test-getaddrinfo.c')
-rw-r--r-- | gl/tests/test-getaddrinfo.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gl/tests/test-getaddrinfo.c b/gl/tests/test-getaddrinfo.c index a8b2fd5d46..5e33bb24f1 100644 --- a/gl/tests/test-getaddrinfo.c +++ b/gl/tests/test-getaddrinfo.c @@ -45,10 +45,15 @@ int simple (char *host, char *service) { char buf[BUFSIZ]; + static int skip = 0; struct addrinfo hints; struct addrinfo *ai0, *ai; int res; + /* Once we skipped the test, do not try anything else */ + if (skip) + return 0; + dbgprintf ("Finding %s service %s...\n", host, service); /* This initializes "hints" but does not use it. Is there a reason @@ -69,6 +74,7 @@ int simple (char *host, char *service) in-law's farm. */ if (res == EAI_AGAIN) { + skip++; fprintf (stderr, "skipping getaddrinfo test: no network?\n"); return 77; } |