[LTP] [PATCH] clock_settime03: accept ENOTSUP if CLOCK_REALTIME_ALARM unsupported

Cyril Hrubis chrubis@suse.cz
Tue Aug 18 10:32:15 CEST 2020


Hi!
> CLOCK_REALTIME_ALARM requires 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 CLOCK_REALTIME_ALARM is already possibly unsupported, accept that as an
> error besides the EINVAL code.
> 
> For issue #712:
>   https://github.com/linux-test-project/ltp/issues/712

Actually I've commented on the issue, do we really need the _ALARM clock
for anything? I guess that the test would work fine with old plain
CLOCK_REALTIME as well.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list