Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

selftests/sched_ext: Abort test loop on signal

The runner sets exit_req on SIGINT/SIGTERM but ignores it during the
main loop. This prevents users from cleanly interrupting a test run.

Check exit_req each iteration to safely break out on exit signals.

Signed-off-by: Cheng-Yang Chou <yphbchou0911@gmail.com>
Acked-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>

authored by

Cheng-Yang Chou and committed by
Tejun Heo
9d851afa 640c9dc7

+3
+3
tools/testing/selftests/sched_ext/runner.c
··· 166 166 enum scx_test_status status; 167 167 struct scx_test *test = &__scx_tests[i]; 168 168 169 + if (exit_req) 170 + break; 171 + 169 172 if (list) { 170 173 printf("%s\n", test->name); 171 174 if (i == (__scx_num_tests - 1))