...
1
2
3
4
5
6
7 package cgotest
8
9 import (
10 "os"
11 "runtime"
12 "testing"
13 )
14
15 func TestSetgid(t *testing.T) {
16 if runtime.GOOS == "android" {
17 t.Skip("unsupported on Android")
18 }
19 if _, err := os.Stat("/etc/alpine-release"); err == nil {
20 t.Skip("setgid is broken with musl libc - go.dev/issue/39857")
21 }
22 testSetgid(t)
23 }
24
25 func TestSetgidStress(t *testing.T) {
26 if runtime.GOOS == "android" {
27 t.Skip("unsupported on Android")
28 }
29 if _, err := os.Stat("/etc/alpine-release"); err == nil {
30 t.Skip("setgid is broken with musl libc - go.dev/issue/39857")
31 }
32 testSetgidStress(t)
33 }
34
35 func Test1435(t *testing.T) { test1435(t) }
36 func Test6997(t *testing.T) { test6997(t) }
37
38 func Test9400(t *testing.T) {
39 if _, err := os.Stat("/etc/alpine-release"); err == nil {
40 t.Skip("setgid is broken with musl libc - go.dev/issue/39857")
41 }
42 test9400(t)
43 }
44
45 func TestBuildID(t *testing.T) { testBuildID(t) }
46
View as plain text