mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 16:33:17 +00:00
As it turns out, the "stdbuf" command will actually force all
subprocesses into unbuffered output, and some implementations of "echo"
turn into single-character writes, which utterly wrecks writes to /sys
and /proc files.
Instead, drop the "stdbuf" usage, and for any tests that want explicit
flushing between newlines, they'll have to add "fflush(stdout);" as
needed.
Reported-by: Takashi Iwai <[email protected]>
Fixes: 5c069b6ded ("selftests: Move test output to diagnostic lines")
Signed-off-by: Kees Cook <[email protected]>
Tested-by: Takashi Iwai <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>