OpenCloudOS-Kernel/tools/testing/selftests/vDSO
Vincenzo Frascino ec049891b2 kselftest: Fix vdso_test_abi return status
vdso_test_abi contains a batch of tests that verify the validity of the
vDSO ABI.

When a vDSO symbol is not found the relevant test is skipped reporting
KSFT_SKIP. All the tests return values are then added in a single
variable which is checked to verify failures. This approach can have
side effects which result in reporting the wrong kselftest exit status.

Fix vdso_test_abi verifying the return code of each test separately.

Cc: Shuah Khan <shuah@kernel.org>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Reported-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2022-01-31 10:35:14 -07:00
..
.gitignore selftests/vDSO: add additional binaries to .gitignore 2021-01-04 09:25:44 -07:00
Makefile kselftest: Move test_vdso to the vDSO test suite 2020-10-27 17:58:33 -06:00
parse_vdso.c selftests: vdso: Use a header file to prototype parse_vdso API 2020-05-22 11:04:10 -06:00
parse_vdso.h selftests: vdso: Use a header file to prototype parse_vdso API 2020-05-22 11:04:10 -06:00
vdso_config.h selftests/vDSO: fix ABI selftest on riscv 2021-02-08 16:38:34 -07:00
vdso_standalone_test_x86.c selftests: vdso: Use a header file to prototype parse_vdso API 2020-05-22 11:04:10 -06:00
vdso_test_abi.c kselftest: Fix vdso_test_abi return status 2022-01-31 10:35:14 -07:00
vdso_test_clock_getres.c kselftest: Extend vDSO selftest to clock_getres 2020-10-27 17:58:00 -06:00
vdso_test_correctness.c selftests/vDSO: fix -Wformat warning in vdso_test_correctness 2021-01-04 09:25:45 -07:00
vdso_test_getcpu.c selftests: vdso: Add a selftest for vDSO getcpu() 2020-05-22 11:05:07 -06:00
vdso_test_gettimeofday.c selftests: vdso: Use a header file to prototype parse_vdso API 2020-05-22 11:04:10 -06:00