selftests/timens: handle a case when alarm clocks are not supported
authorAndrei Vagin <avagin@gmail.com>
Thu, 21 May 2020 07:52:52 +0000 (00:52 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 22 May 2020 19:29:55 +0000 (13:29 -0600)
commit558ae0355a91c7d28fdf4c0011bee6ebb5118632
treea027e46534ad7b0c4aff3beee6533ed257ae3217
parent5627f9cffee73dca9762135b6a8c7ab7213f31e2
selftests/timens: handle a case when alarm clocks are not supported

This can happen if a testing node doesn't have RTC (real time clock)
hardware or it doesn't support alarms.

Fixes: 61c57676035d ("selftests/timens: Add Time Namespace test for supported clocks")
Acked-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Reported-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Signed-off-by: Andrei Vagin <avagin@gmail.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/timens/clock_nanosleep.c
tools/testing/selftests/timens/timens.c
tools/testing/selftests/timens/timens.h
tools/testing/selftests/timens/timer.c
tools/testing/selftests/timens/timerfd.c