]> www.infradead.org Git - linux.git/commit
sched_ext: Fix enq_last_no_enq_fails selftest
authorTejun Heo <tj@kernel.org>
Fri, 25 Oct 2024 22:19:06 +0000 (12:19 -1000)
committerTejun Heo <tj@kernel.org>
Fri, 25 Oct 2024 22:20:29 +0000 (12:20 -1000)
commitc31f2ee5cd7da3086eb4fbeef9f3afdc8e01d36b
treee45dc68128c311f4595d8689cf32cd76f39e52fe
parent7724abf0ca77460cb06ac3d5e4352a5c2289c3ae
sched_ext: Fix enq_last_no_enq_fails selftest

cc9877fb7677 ("sched_ext: Improve error reporting during loading") changed
how load failures are reported so that more error context can be
communicated. This breaks the enq_last_no_enq_fails test as attach no longer
fails. The scheduler is guaranteed to be ejected on attach completion with
full error information. Update enq_last_no_enq_fails so that it checks that
the scheduler is ejected using ops.exit().

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Vishal Chourasia <vishalc@linux.ibm.com>
Link: http://lkml.kernel.org/r/Zxknp7RAVNjmdJSc@linux.ibm.com
Fixes: cc9877fb7677 ("sched_ext: Improve error reporting during loading")
tools/testing/selftests/sched_ext/enq_last_no_enq_fails.bpf.c
tools/testing/selftests/sched_ext/enq_last_no_enq_fails.c