diff --git a/unix/syscall_linux_test.go b/unix/syscall_linux_test.go index dd0fa6a8..f5d39660 100644 --- a/unix/syscall_linux_test.go +++ b/unix/syscall_linux_test.go @@ -117,6 +117,12 @@ func TestIoctlGetRTCWkAlrm(t *testing.T) { defer f.Close() v, err := unix.IoctlGetRTCWkAlrm(int(f.Fd())) + + // Not all RTC drivers support wakeup alarms, and will return EINVAL in such cases. + if err == unix.EINVAL { + t.Skip("RTC_WKALM_RD ioctl not supported on this rtc, skipping test") + } + if err != nil { t.Fatalf("failed to perform ioctl: %v", err) }