diff --git a/unix/syscall_bsd_test.go b/unix/syscall_bsd_test.go index 0bcd741f..2ad51290 100644 --- a/unix/syscall_bsd_test.go +++ b/unix/syscall_bsd_test.go @@ -7,6 +7,7 @@ package unix_test import ( + "runtime" "testing" "golang.org/x/sys/unix" @@ -35,6 +36,10 @@ func TestGetfsstat(t *testing.T) { } func TestSysctlRaw(t *testing.T) { + if runtime.GOOS == "openbsd" { + t.Skip("kern.proc.pid does not exist on OpenBSD") + } + _, err := unix.SysctlRaw("kern.proc.pid", unix.Getpid()) if err != nil { t.Fatal(err)