summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/timers/set-tai.c
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2019-05-21 00:37:49 +0200
committerShuah Khan <skhan@linuxfoundation.org>2019-05-21 17:24:31 +0200
commitfe48319243a626c860fd666ca032daacc2ba84a5 (patch)
treeb5fd41f29077fd65df3ce9a7a6b3cbd62b3d4e96 /tools/testing/selftests/timers/set-tai.c
parentselftests: Remove forced unbuffering for test running (diff)
downloadlinux-fe48319243a626c860fd666ca032daacc2ba84a5.tar.xz
linux-fe48319243a626c860fd666ca032daacc2ba84a5.zip
selftests/timers: Add missing fflush(stdout) calls
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>
Diffstat (limited to 'tools/testing/selftests/timers/set-tai.c')
-rw-r--r--tools/testing/selftests/timers/set-tai.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/timers/set-tai.c b/tools/testing/selftests/timers/set-tai.c
index 70fed27d8fd3..8c4179ee2ca2 100644
--- a/tools/testing/selftests/timers/set-tai.c
+++ b/tools/testing/selftests/timers/set-tai.c
@@ -55,6 +55,7 @@ int main(int argc, char **argv)
printf("tai offset started at %i\n", ret);
printf("Checking tai offsets can be properly set: ");
+ fflush(stdout);
for (i = 1; i <= 60; i++) {
ret = set_tai(i);
ret = get_tai();