diff --git a/unix/sysvshm_unix_test.go b/unix/sysvshm_unix_test.go index 61c7b8d6..c1eff8dd 100644 --- a/unix/sysvshm_unix_test.go +++ b/unix/sysvshm_unix_test.go @@ -26,6 +26,11 @@ func TestSysvSharedMemory(t *testing.T) { return } + // The kernel may have been built without System V IPC support. + if err == unix.ENOSYS { + t.Skip("shmget not supported") + } + if err != nil { t.Fatalf("SysvShmGet: %v", err) }