]> Cypherpunks.ru repositories - gostls13.git/blob - misc/cgo/test/cgo_linux_test.go
2b6fe558d58ebe1cd230fcf10fad306820fc093f
[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 package cgotest
6
7 import (
8         "os"
9         "runtime"
10         "testing"
11 )
12
13 func TestSetgid(t *testing.T) {
14         if runtime.GOOS == "android" {
15                 t.Skip("unsupported on Android")
16         }
17         if _, err := os.Stat("/etc/alpine-release"); err == nil {
18                 t.Skip("setgid is broken with musl libc - go.dev/issue/39857")
19         }
20         testSetgid(t)
21 }
22
23 func TestSetgidStress(t *testing.T) {
24         if runtime.GOOS == "android" {
25                 t.Skip("unsupported on Android")
26         }
27         if _, err := os.Stat("/etc/alpine-release"); err == nil {
28                 t.Skip("setgid is broken with musl libc - go.dev/issue/39857")
29         }
30         testSetgidStress(t)
31 }
32
33 func Test1435(t *testing.T)    { test1435(t) }
34 func Test6997(t *testing.T)    { test6997(t) }
35 func Test9400(t *testing.T)    { test9400(t) }
36 func TestBuildID(t *testing.T) { testBuildID(t) }