From 2b386ab09f8b583ba0547bf06ebc57c78c3bea51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 16 Feb 2010 19:13:56 +0100 Subject: [PATCH] Skip "wrong service name" `getaddrinfo' test on Darwin 9.2. * test-suite/tests/net-db.test ("getaddrinfo")["wrong service name"]: Skip test on Darwin 9.2. --- test-suite/tests/net-db.test | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test-suite/tests/net-db.test b/test-suite/tests/net-db.test index 403305372..47d12a92f 100644 --- a/test-suite/tests/net-db.test +++ b/test-suite/tests/net-db.test @@ -81,7 +81,15 @@ (catch 'getaddrinfo-error (lambda () (getaddrinfo "127.0.0.1" "does-not-exist" AI_NUMERICHOST) - #f) + + ;; XXX: The call above unexpectedly suceeds on + ;; `i386-apple-darwin9.2.2', but not on `i386-apple-darwin9.6.0'. + ;; For now we just skip it until a better solution is found. See + ;; http://lists.gnu.org/archive/html/bug-gnulib/2010-02/msg00061.html + ;; for details. + (if (string-contains %host-type "darwin9.2") + (throw 'unresolved) + #f)) (lambda (key errcode) ;; According to POSIX, both error codes are valid (glibc 2.11 ;; chooses `EAI_SERVICE'; Darwin chooses `EAI_NONAME'.)