]> git.baikalelectronics.ru Git - kernel.git/commit
kselftest/runner: Print new line in print of timeout log
authorSeongJae Park <sjpark@amazon.de>
Mon, 2 Dec 2019 11:42:20 +0000 (12:42 +0100)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 11 Dec 2019 17:30:24 +0000 (10:30 -0700)
commit877935ba0068cb215a32403664e774e412086d48
tree25c1721122d198c670cf1f6555ef02cb45a572f4
parent50b07bb6477b96805833be04e5ef3bfbb12a5bbd
kselftest/runner: Print new line in print of timeout log

If a timeout failure occurs, kselftest kills the test process and prints
the timeout log.  If the test process has killed while printing a log
that ends with new line, the timeout log can be printed in middle of the
test process output so that it can be seems like a comment, as below:

    # test_process_log not ok 3 selftests: timers: nsleep-lat # TIMEOUT

This commit avoids such problem by printing one more line before the
TIMEOUT failure log.

Signed-off-by: SeongJae Park <sjpark@amazon.de>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/kselftest/runner.sh