diff options
author | Andrei Vagin <avagin@gmail.com> | 2020-05-21 00:52:52 -0700 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2020-05-22 13:29:55 -0600 |
commit | 558ae0355a91c7d28fdf4c0011bee6ebb5118632 (patch) | |
tree | a027e46534ad7b0c4aff3beee6533ed257ae3217 /tools/testing/selftests/timens/timens.c | |
parent | 5627f9cffee73dca9762135b6a8c7ab7213f31e2 (diff) |
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>
Diffstat (limited to 'tools/testing/selftests/timens/timens.c')
-rw-r--r-- | tools/testing/selftests/timens/timens.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/timens/timens.c b/tools/testing/selftests/timens/timens.c index 098be7c83be3..52b6a1185f52 100644 --- a/tools/testing/selftests/timens/timens.c +++ b/tools/testing/selftests/timens/timens.c @@ -155,7 +155,7 @@ int main(int argc, char *argv[]) nscheck(); - check_config_posix_timers(); + check_supported_timers(); ksft_set_plan(ARRAY_SIZE(clocks) * 2); |