Commit Graph
4 Commits
Author SHA1 Message Date
David Carlier 1d02346fec selftests/sched_ext: Add missing error check for exit__load()
exit__load(skel) was called without checking its return value.
Every other test in the suite wraps the load call with
SCX_FAIL_IF(). Add the missing check to be consistent with the
rest of the test suite.

Fixes: a5db7817af ("sched_ext: Add selftests")
Signed-off-by: David Carlier <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
2026-03-13 07:00:45 -10:00
Andrea Righi 7980ad7e4c selftests/sched_ext: Fix exit selftest hang on UP
On single-CPU systems, ops.select_cpu() is never called, causing the
EXIT_SELECT_CPU test case to wait indefinitely.

Avoid the stall by skipping this specific sub-test when only one CPU is
available.

Reported-by: Phil Auld <[email protected]>
Fixes: a5db7817af ("sched_ext: Add selftests")
Signed-off-by: Andrea Righi <[email protected]>
Reviewed-by: Phil Auld <[email protected]>
Tested-by: Phil Auld <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
2025-07-03 06:44:13 -10:00
Andrea Righi 74ca334338 selftests/sched_ext: Fix enum resolution
All scx enums are now automatically generated from vmlinux.h and they
must be initialized using the SCX_ENUM_INIT() macro.

Fix the scx selftests to use this macro to properly initialize these
values.

Fixes: 8da7bf2cee ("tools/sched_ext: Receive updates from SCX repo")
Reported-by: Ihor Solodrai <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Andrea Righi <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
2025-01-24 08:09:52 -10:00
David Vernet a5db7817af sched_ext: Add selftests
Add basic selftests.

Signed-off-by: David Vernet <[email protected]>
Acked-by: Tejun Heo <[email protected]>
2024-06-18 10:09:21 -10:00