]> Cypherpunks repositories - gostls13.git/commitdiff
bufio: skip network test if unixpacket socket not supported
authorIan Lance Taylor <iant@golang.org>
Fri, 7 Feb 2025 02:04:00 +0000 (18:04 -0800)
committerGopher Robot <gobot@golang.org>
Fri, 7 Feb 2025 19:37:07 +0000 (11:37 -0800)
Change-Id: I03434fdc4916fc8d195de2617edc28ec4b66a172
Reviewed-on: https://go-review.googlesource.com/c/go/+/647535
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
src/bufio/net_test.go

index 9c609fbccaeedb6327132701783da6b7c92eaed2..d3b47e4cb99a39264b3f26ecd5ac1cdd3bc7b188 100644 (file)
@@ -30,7 +30,7 @@ func TestCopyUnixpacket(t *testing.T) {
        }
        server, err := net.ListenUnix("unixpacket", addr)
        if err != nil {
-               t.Fatal(err)
+               t.Skipf("skipping test because opening a unixpacket socket failed: %v", err)
        }
 
        // Start a goroutine for the server to accept one connection