]> Cypherpunks.ru repositories - gostls13.git/blob - misc/cgo/test/cgo_linux_test.go
3defc32ffd8562bf8d0a76c7638e76daf314d900
[gostls13.git] / misc / cgo / test / cgo_linux_test.go
1 // Copyright 2012 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 //go:build cgo
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) }