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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:48:54 +0000 (17:48 +0200)
commita6482530f4f7dc3f7fe336982272e538d3231bfe
tree46ff6ca22e6cf73a14b8d85f3a3b31d48b0c1cb1
parentcfc408a35fadf353f21ea665de701b8723606cf2
selftests/timens: handle a case when alarm clocks are not supported

[ Upstream commit 558ae0355a91c7d28fdf4c0011bee6ebb5118632 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.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