]> git.ipfire.org Git - people/arne_f/kernel.git/commit
selftests/timers: Add missing fflush(stdout) calls
authorKees Cook <keescook@chromium.org>
Mon, 20 May 2019 22:37:49 +0000 (15:37 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Jun 2019 06:20:57 +0000 (08:20 +0200)
commit881758675907d24777742a39c74f1b221b5f0e62
treef44f6a23a1a1f3c9a41d68641986167d58a724be
parent69bb52fdeb7fe962822b89eabdc6a42beaeceb53
selftests/timers: Add missing fflush(stdout) calls

[ Upstream commit fe48319243a626c860fd666ca032daacc2ba84a5 ]

When running under a pipe, some timer tests would not report output in
real-time because stdout flushes were missing after printf()s that lacked
a newline. This adds them to restore real-time status output that humans
can enjoy.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/timers/adjtick.c
tools/testing/selftests/timers/leapcrash.c
tools/testing/selftests/timers/mqueue-lat.c
tools/testing/selftests/timers/nanosleep.c
tools/testing/selftests/timers/nsleep-lat.c
tools/testing/selftests/timers/raw_skew.c
tools/testing/selftests/timers/set-tai.c
tools/testing/selftests/timers/set-tz.c
tools/testing/selftests/timers/threadtest.c
tools/testing/selftests/timers/valid-adjtimex.c