summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/futex/functional/futex_wait_private_mapped_file.c
diff options
context:
space:
mode:
authorShuah Khan2017-08-05 01:12:29 +0200
committerShuah Khan2017-08-17 01:45:00 +0200
commitb274e75c20f91c2d8fec43f8246282c2817f8e7c (patch)
tree734bb4d4652bffbbe9f9a6f6e6a200b668add2de /tools/testing/selftests/futex/functional/futex_wait_private_mapped_file.c
parentselftests: capabilities: convert error output to TAP13 ksft framework (diff)
downloadkernel-qcow2-linux-b274e75c20f91c2d8fec43f8246282c2817f8e7c.tar.gz
kernel-qcow2-linux-b274e75c20f91c2d8fec43f8246282c2817f8e7c.tar.xz
kernel-qcow2-linux-b274e75c20f91c2d8fec43f8246282c2817f8e7c.zip
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_private_mapped_file.c')
-rw-r--r--tools/testing/selftests/futex/functional/futex_wait_private_mapped_file.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/testing/selftests/futex/functional/futex_wait_private_mapped_file.c b/tools/testing/selftests/futex/functional/futex_wait_private_mapped_file.c
index bdc48dc047e5..6216de828093 100644
--- a/tools/testing/selftests/futex/functional/futex_wait_private_mapped_file.c
+++ b/tools/testing/selftests/futex/functional/futex_wait_private_mapped_file.c
@@ -97,8 +97,10 @@ int main(int argc, char **argv)
}
}
- printf("%s: Test the futex value of private file mappings in FUTEX_WAIT\n",
- basename(argv[0]));
+ ksft_print_header();
+ ksft_print_msg(
+ "%s: Test the futex value of private file mappings in FUTEX_WAIT\n",
+ basename(argv[0]));
ret = pthread_create(&thr, NULL, thr_futex_wait, NULL);
if (ret < 0) {