]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/sched_ext: flush stdout before test to avoid log spam
authorEmil Tsalapatis <etsal@meta.com>
Fri, 5 Dec 2025 21:23:14 +0000 (13:23 -0800)
committerTejun Heo <tj@kernel.org>
Fri, 12 Dec 2025 18:18:32 +0000 (08:18 -1000)
commit579a3297b268f0281644ead7ff574a2b4bc64d3c
tree2f9f4ab29ec942523250d83597fad21622f3898d
parentf5e1e5ec204da11fa87fdf006d451d80ce06e118
selftests/sched_ext: flush stdout before test to avoid log spam

The sched_ext selftests runner runs each test in the same process,
with each test possibly forking multiple times. When the main runner
has not flushed its stdout, the children inherit the buffered output
for previous tests and emit it during exit. This causes log spam.

Make sure stdout/stderr is fully flushed before each test.

Cc: Ihor Solodrai <ihor.solodrai@linux.dev>
Signed-off-by: Emil Tsalapatis <emil@etsalapatis.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
tools/testing/selftests/sched_ext/runner.c