Skip to content

Commit 94eda9a

Browse files
AndrewGMorganianlancetaylor
authored andcommitted
syscall: disable TestAllThreadsSyscall on linux-ppc64
For some reason, currently unknown, this test case fails exclusively on the linux-ppc64 platform. Until such time as it can be made to work, we'll disable this test case on that platform. The same issue causes TestSetuidEtc to fail too, so disable that on this platform. Updates #42178 Change-Id: Idd3f6c2ee9f2fba2eb8ce4de69de7f316858bb15 Reviewed-on: https://go-review.googlesource.com/c/go/+/264719 Trust: Emmanuel Odeke <[email protected]> Run-TryBot: Emmanuel Odeke <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent d05c035 commit 94eda9a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/syscall/syscall_linux_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,9 @@ const (
410410
// syscalls that execute on all OSThreads - with which to support
411411
// POSIX semantics for security state changes.
412412
func TestAllThreadsSyscall(t *testing.T) {
413+
if runtime.GOARCH == "ppc64" {
414+
t.Skip("skipping on linux/ppc64; see issue #42178")
415+
}
413416
if _, _, err := syscall.AllThreadsSyscall(syscall.SYS_PRCTL, PR_SET_KEEPCAPS, 0, 0); err == syscall.ENOTSUP {
414417
t.Skip("AllThreadsSyscall disabled with cgo")
415418
}
@@ -577,6 +580,9 @@ func compareStatus(filter, expect string) error {
577580
// the syscalls. Care should be taken to mirror any enhancements to
578581
// this test here in that file too.
579582
func TestSetuidEtc(t *testing.T) {
583+
if runtime.GOARCH == "ppc64" {
584+
t.Skip("skipping on linux/ppc64; see issue #42178")
585+
}
580586
if syscall.Getuid() != 0 {
581587
t.Skip("skipping root only test")
582588
}

0 commit comments

Comments
 (0)