projects
/
libusual.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d4b222
)
test_netdb: accept ENOSYS
author
Marko Kreen
<markokr@gmail.com>
Mon, 12 Dec 2011 11:37:29 +0000
(13:37 +0200)
committer
Marko Kreen
<markokr@gmail.com>
Mon, 12 Dec 2011 17:10:59 +0000
(19:10 +0200)
This allows the test to pass when no-op getaddrinfo is used.
test/test_netdb.c
patch
|
blob
|
blame
|
history
diff --git
a/test/test_netdb.c
b/test/test_netdb.c
index af5b6795a0bd8cd2c5d895b0330ee5e726dede80..1921f71481577a8c2d032dc5e51b58ca4ca868e9 100644
(file)
--- a/
test/test_netdb.c
+++ b/
test/test_netdb.c
@@
-29,7
+29,12
@@
static void test_gai(void *p)
sev.sigev_notify_function = cb_func;
res = getaddrinfo_a(GAI_NOWAIT, rlist, 1, &sev);
- int_check(res, 0);
+ if (res == EAI_SYSTEM && errno == ENOSYS) {
+ /* ok - no impl */
+ goto end;
+ } else {
+ int_check(res, 0);
+ }
while (gai_error(&req) == EAI_INPROGRESS || gotres == 0)
usleep(10000);