-
由 Kees Cook 提交于
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: NTakashi Iwai <tiwai@suse.de> Fixes: 5c069b6d ("selftests: Move test output to diagnostic lines") Signed-off-by: NKees Cook <keescook@chromium.org> Tested-by: NTakashi Iwai <tiwai@suse.de> Signed-off-by: NShuah Khan <skhan@linuxfoundation.org>
e8108866