summaryrefslogtreecommitdiff
path: root/misc/cgo/test
diff options
context:
space:
mode:
Diffstat (limited to 'misc/cgo/test')
-rw-r--r--misc/cgo/test/issue1435.go6
-rw-r--r--misc/cgo/test/pkg_test.go4
2 files changed, 10 insertions, 0 deletions
diff --git a/misc/cgo/test/issue1435.go b/misc/cgo/test/issue1435.go
index 91db155c90..3fb721ac39 100644
--- a/misc/cgo/test/issue1435.go
+++ b/misc/cgo/test/issue1435.go
@@ -10,6 +10,7 @@ package cgotest
import (
"fmt"
"os"
+ "runtime"
"sort"
"strings"
"syscall"
@@ -145,6 +146,11 @@ func test1435(t *testing.T) {
if syscall.Getuid() != 0 {
t.Skip("skipping root only test")
}
+ if runtime.GOOS == "linux" {
+ if _, err := os.Stat("/etc/alpine-release"); err == nil {
+ t.Skip("skipping failing test on alpine - go.dev/issue/19938")
+ }
+ }
// Launch some threads in C.
const cts = 5
diff --git a/misc/cgo/test/pkg_test.go b/misc/cgo/test/pkg_test.go
index 14013a4cd9..cbc80eee77 100644
--- a/misc/cgo/test/pkg_test.go
+++ b/misc/cgo/test/pkg_test.go
@@ -34,6 +34,10 @@ func TestCrossPackageTests(t *testing.T) {
case "arm64":
t.Skip("Can't exec cmd/go subprocess on iOS.")
}
+ case "linux":
+ if _, err := os.Stat("/etc/alpine-release"); err == nil {
+ t.Skip("skipping failing test on alpine - go.dev/issue/39857")
+ }
}
GOPATH, err := os.MkdirTemp("", "cgotest")