Re: [PATCH v3] selftests/timens: handle a case when alarm clocks are not supported

From: shuah
Date: Fri May 22 2020 - 15:32:27 EST


On 5/21/20 1:52 AM, Andrei Vagin wrote:
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@xxxxxxx>
Reported-by: Vincenzo Frascino <vincenzo.frascino@xxxxxxx>
Signed-off-by: Andrei Vagin <avagin@xxxxxxxxx>
---
v2: fix timer.c and timerfd.c too.
v3: add Reported-by and Fixes tags.

tools/testing/selftests/timens/clock_nanosleep.c | 2 +-
tools/testing/selftests/timens/timens.c | 2 +-
tools/testing/selftests/timens/timens.h | 13 ++++++++++++-
tools/testing/selftests/timens/timer.c | 5 +++++
tools/testing/selftests/timens/timerfd.c | 5 +++++
5 files changed, 24 insertions(+), 3 deletions(-)


Applied to linux-kselftest next for Linux 5.8-rc1

thanks,
-- Shuah