[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#72547: [PATCH 2/9] tests: Skip tests of abstract Unix sockets on Dar
From: |
Tomas Volf |
Subject: |
bug#72547: [PATCH 2/9] tests: Skip tests of abstract Unix sockets on Darwin. |
Date: |
Sat, 10 Aug 2024 00:54:28 +0200 |
Darwin does not support abstract Unix sockets, so mark the tests as
skipped.
* test-suite/tests/00-socket.test (skip-on-darwin): New procedure.
("bind abstract", "listen abstract", "connect abstract")
("accept abstract"): Skip on Darwin.
---
test-suite/tests/00-socket.test | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/test-suite/tests/00-socket.test b/test-suite/tests/00-socket.test
index 17e686225..ba9bb279b 100644
--- a/test-suite/tests/00-socket.test
+++ b/test-suite/tests/00-socket.test
@@ -25,6 +25,10 @@
#:use-module (srfi srfi-26)
#:use-module (test-suite lib))
+(define (skip-on-darwin)
+ (when (string-ci=? "darwin" (vector-ref (uname) 0))
+ (throw 'untested)))
+
;;;
@@ -336,6 +340,7 @@
(set! path (string-append "\x00" path))
(pass-if "bind abstract"
+ (skip-on-darwin)
(catch 'system-error
(lambda ()
(bind server-socket AF_UNIX path)
@@ -348,6 +353,7 @@
(apply throw args))))))
(pass-if "listen abstract"
+ (skip-on-darwin)
(if (not server-bound?)
(throw 'unresolved)
(begin
@@ -375,6 +381,7 @@
#t))))
(pass-if "connect abstract"
+ (skip-on-darwin)
(if (not server-pid)
(throw 'unresolved)
(let ((s (socket AF_UNIX SOCK_STREAM 0)))
@@ -383,6 +390,7 @@
#t)))
(pass-if "accept abstract"
+ (skip-on-darwin)
(if (not server-pid)
(throw 'unresolved)
(begin
--
2.45.2
- bug#72547: [PATCH 0/9] Make test suite pass on macOS., Tomas Volf, 2024/08/09
- bug#72547: [PATCH 1/9] tests: Check TCP_NODELAY for non-zero instead of 1., Tomas Volf, 2024/08/09
- bug#72547: [PATCH 3/9] tests: Skip hole-related port tests on Darwin., Tomas Volf, 2024/08/09
- bug#72547: [PATCH 2/9] tests: Skip tests of abstract Unix sockets on Darwin.,
Tomas Volf <=
- bug#72547: [PATCH 5/9] tests: Skip mkdtemp test for invalid template on Darwin., Tomas Volf, 2024/08/09
- bug#72547: [PATCH 4/9] filesys.c: Fix readlink for ports on Darwin., Tomas Volf, 2024/08/09
- bug#72547: [PATCH 7/9] tests: Fix spawn if file not found with Gnulib., Tomas Volf, 2024/08/09
- bug#72547: [PATCH 6/9] tests: Fix spawn with #:environment on MacOS., Tomas Volf, 2024/08/09
- bug#72547: [PATCH 8/9] Do not depend on tmpnam in posix.test., Tomas Volf, 2024/08/09
- bug#72547: [PATCH 9/9] posix.c: Set errno when pipe2 is not available and flags provided., Tomas Volf, 2024/08/09