]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/sched_ext: Skip rt_stall on older kernels and list skipped tests
authorCheng-Yang Chou <yphbchou0911@gmail.com>
Tue, 24 Mar 2026 19:14:04 +0000 (03:14 +0800)
committerTejun Heo <tj@kernel.org>
Tue, 24 Mar 2026 20:33:25 +0000 (10:33 -1000)
commit7ef26d62f3fd841fd18ab6fa93a6bc2de9d17dff
tree248b76ba190febf35a847380ec4aedd4a7ba9479
parent9edd04c4189e047d4b4f6efd1255e2a32cb167b8
selftests/sched_ext: Skip rt_stall on older kernels and list skipped tests

rt_stall tests the ext DL server which was introduced in commit
cd959a356205 ("sched_ext: Add a DL server for sched_ext tasks").
On older kernels that lack this feature, the test calls ksft_exit_fail()
internally which terminates the entire runner process, preventing
subsequent tests from running.

Add a guard in setup() that checks for the ext_server field in struct rq
via __COMPAT_struct_has_field() and returns SCX_TEST_SKIP if not present.

Also print the names of skipped tests in the results summary, mirroring
the existing behavior for failed tests.

Signed-off-by: Cheng-Yang Chou <yphbchou0911@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
tools/testing/selftests/sched_ext/rt_stall.c
tools/testing/selftests/sched_ext/runner.c