You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CLOCK_REALTIME_ALARM and CLOCK_BOOTTIME_ALARM require an RTC with alarm
support, which may not be present on a system. In that case, the kernel
will return EOPNOTSUPP, which is defined as ENOTSUP in userspace.
As these clocks are already possibly unsupported, accept that as an error
code besides the EINVAL code.
Note that previously the kernel would incorrectly return the ENOTSUPP code,
which is undefined in userspace. With these unfixed kernels, the test will
fail when those RTCs are not present.
Kernel was fixed to return correct errno in:
f18ddc13af98 ("alarmtimer: Use EOPNOTSUPP instead of ENOTSUPP").
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
0 commit comments