diff options
author | Shuah Khan <shuahkh@osg.samsung.com> | 2017-08-04 17:12:29 -0600 |
---|---|---|
committer | Shuah Khan <shuahkh@osg.samsung.com> | 2017-08-16 17:45:00 -0600 |
commit | b274e75c20f91c2d8fec43f8246282c2817f8e7c (patch) | |
tree | 734bb4d4652bffbbe9f9a6f6e6a200b668add2de /tools/testing/selftests/futex/functional/futex_wait_timeout.c | |
parent | 3c1f619eea08cc31057c437a1c064e33c73ebe35 (diff) |
selftests: futex: convert test to use ksft TAP13 framework
Convert test to use ksft TAP13 framework to print user friendly
test output which is consistent across kselftest suite.
Acked-by: Darren Hart (VMware) <dvhart@infradead.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing/selftests/futex/functional/futex_wait_timeout.c')
-rw-r--r-- | tools/testing/selftests/futex/functional/futex_wait_timeout.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/testing/selftests/futex/functional/futex_wait_timeout.c b/tools/testing/selftests/futex/functional/futex_wait_timeout.c index 6aadd560366e..bab3dfe1787f 100644 --- a/tools/testing/selftests/futex/functional/futex_wait_timeout.c +++ b/tools/testing/selftests/futex/functional/futex_wait_timeout.c @@ -68,9 +68,10 @@ int main(int argc, char *argv[]) } } - printf("%s: Block on a futex and wait for timeout\n", + ksft_print_header(); + ksft_print_msg("%s: Block on a futex and wait for timeout\n", basename(argv[0])); - printf("\tArguments: timeout=%ldns\n", timeout_ns); + ksft_print_msg("\tArguments: timeout=%ldns\n", timeout_ns); /* initialize timeout */ to.tv_sec = 0; |