From 43be30ef30085dd88ff96d4e4d8f2f8cf3e99ab8 Mon Sep 17 00:00:00 2001 From: Matt Layher Date: Mon, 28 Mar 2022 08:53:28 -0400 Subject: [PATCH] unix: skip Linux TestPidfd if Waitid returns EINVAL The updated test in CL 395936 appears to break GOARCH mips* builders. Updates golang/go#52014 Change-Id: I42bb71d6afda2112a524257fd1b42306dd22689c Reviewed-on: https://go-review.googlesource.com/c/sys/+/396154 Trust: Matt Layher Run-TryBot: Matt Layher Reviewed-by: Tobias Klauser TryBot-Result: Gopher Robot --- unix/syscall_linux_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/unix/syscall_linux_test.go b/unix/syscall_linux_test.go index e20c767d..9fc641ab 100644 --- a/unix/syscall_linux_test.go +++ b/unix/syscall_linux_test.go @@ -240,6 +240,10 @@ func TestPidfd(t *testing.T) { // Child is running but not terminated. if err := unix.Waitid(unix.P_PIDFD, fd, nil, unix.WEXITED|unix.WNOHANG, nil); err != nil { + if errors.Is(err, unix.EINVAL) { + t.Skip("skipping due to waitid EINVAL, see https://go.dev/issues/52014") + } + t.Fatalf("failed to check for child exit: %v", err) }