]> Cypherpunks repositories - gostls13.git/commit
net: skip tests if creating a socket is disallowed
authorTobias Klauser <tklauser@distanz.ch>
Wed, 15 Mar 2023 14:17:11 +0000 (15:17 +0100)
committerGopher Robot <gobot@golang.org>
Wed, 15 Mar 2023 17:06:26 +0000 (17:06 +0000)
commit1d06667bc40160d909897470948bb3fc6ad4da96
treebb2f12d27192b4226ee1b4e8666901a8619421f9
parentfbe313664664477616bb170903728be74a5f5963
net: skip tests if creating a socket is disallowed

In a container environment, creating a socket may be disallowed. Try to
detect these cases and skip the tests instead of failing them.

Fixes #58114

Change-Id: I681d19107e946d2508e2d1704956360f13c7335b
Reviewed-on: https://go-review.googlesource.com/c/go/+/476217
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/net/iprawsock_test.go
src/net/protoconn_test.go