linux/tools/testing/selftests/vDSO
Thomas Weißschuh 576fc220fb selftests: vDSO: chacha: Correctly skip test if necessary
[ Upstream commit 2c0a4428f5 ]

According to kselftest.h ksft_exit_skip() is not meant to be called when
a plan has already been printed.

Use the recommended function ksft_test_result_skip().

This fixes a bug, where the TAP output would be invalid when skipping:

	TAP version 13
	1..1
	ok 2 # SKIP Not implemented on architecture

The SKIP line should start with "ok 1" as the plan only contains one test.

Fixes: 3b5992eaf7 ("selftests: vDSO: unconditionally build chacha test")
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Link: https://lore.kernel.org/all/20250611-selftests-vdso-fixes-v3-1-e62e37a6bcf5@linutronix.de
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-08-15 12:13:36 +02:00
..
.gitignore selftests/vDSO: add tests for vgetrandom 2024-07-19 20:22:12 +02:00
Makefile selftests: vDSO: unconditionally build getrandom test 2024-10-08 15:21:36 -06:00
parse_vdso.c powerpc/vdso: Flag VDSO64 entry points as functions 2024-12-05 14:02:03 +01:00
parse_vdso.h selftests: vdso: Use a header file to prototype parse_vdso API 2020-05-22 11:04:10 -06:00
vdso_call.h selftests: vDSO: fix the way vDSO functions are called for powerpc 2024-08-30 15:48:45 +02:00
vdso_config.h selftests: vDSO: fix vdso_config for s390 2024-09-13 17:28:36 +02:00
vdso_standalone_test_x86.c selftests: vDSO: align stack for O2-optimized memcpy 2024-09-27 12:17:12 -06:00
vdso_test_abi.c selftests: vDSO: use parse_vdso.h in vdso_test_abi 2024-08-30 15:48:45 +02:00
vdso_test_chacha.c selftests: vDSO: chacha: Correctly skip test if necessary 2025-08-15 12:13:36 +02:00
vdso_test_clock_getres.c kselftest: vDSO: Fix accumulation of uninitialized ret when CLOCK_REALTIME is undefined 2023-06-12 16:39:10 -06:00
vdso_test_correctness.c selftests: vDSO: fix the way vDSO functions are called for powerpc 2024-08-30 15:48:45 +02:00
vdso_test_getcpu.c selftests: vDSO: fix the way vDSO functions are called for powerpc 2024-08-30 15:48:45 +02:00
vdso_test_getrandom.c selftests: vDSO: Explicitly include sched.h 2024-10-08 15:48:09 -06:00
vdso_test_gettimeofday.c selftests: vDSO: fix the way vDSO functions are called for powerpc 2024-08-30 15:48:45 +02:00
vgetrandom-chacha.S selftests: vDSO: unconditionally build chacha test 2024-10-08 15:21:29 -06:00