]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/rseq: Don't run tests with runner scripts outside of the scripts
authorMark Brown <broonie@kernel.org>
Thu, 23 Apr 2026 19:17:45 +0000 (20:17 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 1 May 2026 19:32:20 +0000 (21:32 +0200)
commitcb48828f06afa232cc330f0f4d6be101067810b3
tree972cc50a2a4cbd03538a7e5ecd0906865df3ce86
parent3da56dc063cd77b9c0b40add930767fab4e389f3
selftests/rseq: Don't run tests with runner scripts outside of the scripts

The rseq selftests include two runner scripts run_param_test.sh and
run_syscall_errors_test.sh which set up the environment for test binaries
and run them with various parameters. Currently we list these test binaries
in TEST_GEN_PROGS but this results in the kselftest framework running them
directly as well as via the runners, resulting in duplication and spurious
failures when the environment is not correctly set up (eg, if glibc tries
to use rseq).

Move the binaries the runners invoke to TEST_GEN_PROGS_EXTENDED, binaries
listed there are built but not run by the framework.  The param_test
benchmarks are not moved since they are not run by run_param_test.sh.

Fixes: 830969e7821a ("selftests/rseq: Implement time slice extension test")
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260423-selftests-rseq-use-runner-v1-1-e13a133754c1@kernel.org
Cc: stable@vger.kernel.org
tools/testing/selftests/rseq/Makefile