From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tomas Volf <~@wolfsden.cz> Newsgroups: gmane.lisp.guile.bugs Subject: bug#72547: [PATCH 2/9] tests: Skip tests of abstract Unix sockets on Darwin. Date: Sat, 10 Aug 2024 00:54:28 +0200 Message-ID: <20240809225435.19028-2-~@wolfsden.cz> References: <20240809225435.19028-1-~@wolfsden.cz> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20259"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Tomas Volf <~@wolfsden.cz> To: 72547@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Sat Aug 10 00:55:54 2024 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1scYWX-00055z-KL for guile-bugs@m.gmane-mx.org; Sat, 10 Aug 2024 00:55:54 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1scYWF-0005zt-Pu; Fri, 09 Aug 2024 18:55:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1scYWE-0005zO-TK for bug-guile@gnu.org; Fri, 09 Aug 2024 18:55:34 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1scYWE-00020m-JK for bug-guile@gnu.org; Fri, 09 Aug 2024 18:55:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=YExVu4k5S8Ueir2n6evDwP6IWn8HeZpQAG118p/q9Ss=; b=EkjkclihSSQRqrnC4E3IT2RhFO959FDYuEFeqDMM6BigiOFxQQlKmr8vvSYy7ebMQ4WcgnoAk2nzFOpC8stDOFGolNpKSpX8Ih7PQzg5fOFsQ+2ig0+mBhj2/aZYctNKawW1ca3i3z4+NwkC7veS4oJMD5A6SVyyPW2d6Z0R5AiDHwtz6k5w4QYW2RRUKdC80AmK/kxP8l4pUlJ0coCxWWOYJ+43YwSguUrdMJ6p1hDBoI5qmoOfPf3brUKC57Sg5nUE8yY9deBUc6n5OFISclP5feXSvZqcmLNlB/lLIxRXpawVDAzInFZjrQ77ElbW/HbFGd92KvwaMWR8K11TAA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1scYWh-00088A-1O for bug-guile@gnu.org; Fri, 09 Aug 2024 18:56:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tomas Volf <~@wolfsden.cz> Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 09 Aug 2024 22:56:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72547 X-GNU-PR-Package: guile X-GNU-PR-Keywords: patch Original-Received: via spool by 72547-submit@debbugs.gnu.org id=B72547.172324411731131 (code B ref 72547); Fri, 09 Aug 2024 22:56:03 +0000 Original-Received: (at 72547) by debbugs.gnu.org; 9 Aug 2024 22:55:17 +0000 Original-Received: from localhost ([127.0.0.1]:38737 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1scYVx-000861-7s for submit@debbugs.gnu.org; Fri, 09 Aug 2024 18:55:17 -0400 Original-Received: from wolfsden.cz ([37.205.8.62]:33516) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1scYVr-00084n-1w for 72547@debbugs.gnu.org; Fri, 09 Aug 2024 18:55:12 -0400 Original-Received: by wolfsden.cz (Postfix, from userid 104) id E842B2A8F97; Fri, 9 Aug 2024 22:54:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1723244080; bh=swH1qsU31CaSozVToabxdBxJofm7whtH64pbYBTtg9o=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=OgjK+oVnlT+fVcjtITzEbkWbiIWEfwINFqJP4xKuWpcwQHmZxIq37fibr1ozh48AX LPoNpoH+U/WUwmSk7am23DQZchd56U/EFBSz28t05C2xnXXo2ZOKT+kpCQHNnpQHCX EmdLeEOT36u3QdIMoV/H6/DEAyO9lJaqUkfvElZy/5ciWRJUOwPITy0tg+WFs/wwTX g2fSATxaJXWD7HhR8ZQoNG4kk5t/KUZC+71OYftjBcYPkwBeykD3cl06Jh06jwxGu3 mqWsCzwlN5nFa8P4FQ3h8QM6NAHLD/L01kpKHcKLw7jy2zq73QbpqU/Ch5Z+JbDMjI e+9FiFzcaZwihcGH8K/njmB9qwBd24H9TGl4qeYuW3Wz6iAnDe3H//NiNT2TH7f0zk QDQ3/IgnSIHTxGD49e/XMfVjftaaboOFQZ/b3rGU4e6Cp6ETVZq0gFG273q76Rt8hQ frl8xqBsav/hYLtk+PGiDG9CCW9b0MiAdZCXq4RNshwwTiBeUCaEODrHnoO51mMIha 0xbWmZeJaPCOGOVM+kNo5pCabk3wGpzcj04Q97PYm7yNr0Hzje0o6gDgU84sFOJyJb vZeO/1z5Nl01QGx3PPBtUcOLGiXP7vZjG0BKe5mH+pt9OA5iicIqrJWnUCOBSDUcRg fXoCdhKU5hoLrZUaITJy4JKU= Original-Received: from localhost (unknown [146.70.134.146]) by wolfsden.cz (Postfix) with ESMTPSA id 828B92A9215; Fri, 9 Aug 2024 22:54:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1723244080; bh=swH1qsU31CaSozVToabxdBxJofm7whtH64pbYBTtg9o=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=OgjK+oVnlT+fVcjtITzEbkWbiIWEfwINFqJP4xKuWpcwQHmZxIq37fibr1ozh48AX LPoNpoH+U/WUwmSk7am23DQZchd56U/EFBSz28t05C2xnXXo2ZOKT+kpCQHNnpQHCX EmdLeEOT36u3QdIMoV/H6/DEAyO9lJaqUkfvElZy/5ciWRJUOwPITy0tg+WFs/wwTX g2fSATxaJXWD7HhR8ZQoNG4kk5t/KUZC+71OYftjBcYPkwBeykD3cl06Jh06jwxGu3 mqWsCzwlN5nFa8P4FQ3h8QM6NAHLD/L01kpKHcKLw7jy2zq73QbpqU/Ch5Z+JbDMjI e+9FiFzcaZwihcGH8K/njmB9qwBd24H9TGl4qeYuW3Wz6iAnDe3H//NiNT2TH7f0zk QDQ3/IgnSIHTxGD49e/XMfVjftaaboOFQZ/b3rGU4e6Cp6ETVZq0gFG273q76Rt8hQ frl8xqBsav/hYLtk+PGiDG9CCW9b0MiAdZCXq4RNshwwTiBeUCaEODrHnoO51mMIha 0xbWmZeJaPCOGOVM+kNo5pCabk3wGpzcj04Q97PYm7yNr0Hzje0o6gDgU84sFOJyJb vZeO/1z5Nl01QGx3PPBtUcOLGiXP7vZjG0BKe5mH+pt9OA5iicIqrJWnUCOBSDUcRg fXoCdhKU5hoLrZUaITJy4JKU= X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240809225435.19028-1-~@wolfsden.cz> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.bugs:10939 Archived-At: 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