Extend the tests to also handle CLOCK_REALTIME_ALARM and CLOCK_BOOTTIME_ALARM. These are currently not handled by the vDSO, so will fall through to the system call and succeed.
The tests will become useful when the vDSO will start handling these clocks in later patches. Signed-off-by: Thomas Weißschuh <[email protected]> --- tools/testing/selftests/vDSO/vdso_test_abi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/vDSO/vdso_test_abi.c b/tools/testing/selftests/vDSO/vdso_test_abi.c index b162a4ba9c4f..4f538928e1d4 100644 --- a/tools/testing/selftests/vDSO/vdso_test_abi.c +++ b/tools/testing/selftests/vDSO/vdso_test_abi.c @@ -261,7 +261,7 @@ static inline void vdso_test_clock(clockid_t clock_id) vdso_test_clock_getres_time64(clock_id); } -#define VDSO_TEST_PLAN 38 +#define VDSO_TEST_PLAN 46 int main(int argc, char **argv) { @@ -284,7 +284,9 @@ int main(int argc, char **argv) vdso_test_gettimeofday(); vdso_test_clock(CLOCK_REALTIME); + vdso_test_clock(CLOCK_REALTIME_ALARM); vdso_test_clock(CLOCK_BOOTTIME); + vdso_test_clock(CLOCK_BOOTTIME_ALARM); vdso_test_clock(CLOCK_TAI); vdso_test_clock(CLOCK_REALTIME_COARSE); vdso_test_clock(CLOCK_MONOTONIC); -- 2.55.0

