1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-09 21:40:33 +02:00

net-db.test tweak

* test-suite/tests/net-db.test: Throw 'unresolved if we have a crap DNS
  that is returning results for all addresses.
This commit is contained in:
Andy Wingo 2010-08-28 12:02:12 -07:00
parent f5e854388b
commit fb61f4b826

View file

@ -68,8 +68,9 @@
(pass-if "no name"
(catch 'getaddrinfo-error
(lambda ()
(getaddrinfo "does-not-exist")
#f)
(pk "getaddrinfo for \"does-not-exist\" succeeded!"
(getaddrinfo "does-not-exist"))
(throw 'unresolved))
(lambda (key errcode)
;; In some cases (e.g., in a chroot without
;; /etc/{hosts,resolv.conf}), this can result in `EAI_EAGAIN'.