From: Ian Lance Taylor Date: Fri, 7 Feb 2025 02:04:00 +0000 (-0800) Subject: bufio: skip network test if unixpacket socket not supported X-Git-Tag: go1.25rc1~1125 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d7f6f6fd54bb888606d882cd73df9dcac229b80a;p=gostls13.git bufio: skip network test if unixpacket socket not supported Change-Id: I03434fdc4916fc8d195de2617edc28ec4b66a172 Reviewed-on: https://go-review.googlesource.com/c/go/+/647535 Auto-Submit: Ian Lance Taylor Reviewed-by: Ian Lance Taylor LUCI-TryBot-Result: Go LUCI Reviewed-by: Damien Neil --- diff --git a/src/bufio/net_test.go b/src/bufio/net_test.go index 9c609fbcca..d3b47e4cb9 100644 --- a/src/bufio/net_test.go +++ b/src/bufio/net_test.go @@ -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