]> granicus.if.org Git - libevent/commit
test: adjust expecting error for getaddrinfo() under EMFILE
authorAzat Khuzhin <azat@libevent.org>
Sat, 26 Jan 2019 15:52:33 +0000 (18:52 +0300)
committerAzat Khuzhin <azat@libevent.org>
Sat, 26 Jan 2019 16:57:37 +0000 (19:57 +0300)
commit4ffc7116177230ad2b8b94d51bbf89a14dc83687
treebb3c2adce71d943119959d34f060e82eb225b870
parent91a2f1346e80c67526261ba81c8f3b3736107bcb
test: adjust expecting error for getaddrinfo() under EMFILE

When getaddrinfo() cannot allocate file descriptor glibc/musl-libc on
linux report EAI_SYSTEM error. But this is not true for freebsd libc [1]
(and hence apple libc [2]), they report EAI_NONAME error instead, so
adjust expectation.

  [1]: https://github.com/freebsd/freebsd/blob/master/lib/libc/net/getaddrinfo.c
  [2]: https://opensource.apple.com/source/Libc/

Refs: #749
Refs: https://github.com/libevent/libevent/issues/749#issuecomment-457838159
test/regress_dns.c