aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/futex/functional/futex_requeue_pi.c
diff options
context:
space:
mode:
authorNaresh Kamboju <naresh.kamboju@linaro.org>2017-05-22 12:47:43 +0530
committerShuah Khan <shuahkh@osg.samsung.com>2017-06-07 10:07:21 -0600
commit1f666e522cc49df2659f40be118624bf7a529a0f (patch)
tree445abec98d3055c6425ec834e24106c2be54c14c /tools/testing/selftests/futex/functional/futex_requeue_pi.c
parentLinux 4.12-rc4 (diff)
downloadlinux-dev-1f666e522cc49df2659f40be118624bf7a529a0f.tar.xz
linux-dev-1f666e522cc49df2659f40be118624bf7a529a0f.zip
selftests: futex: print testcase-name and PASS/FAIL/ERROR status
Most of the tests under selftests follow a pattern for their results, which can then be parsed easily by other external tools easily. Though futex tests do print the test results very well, it doesn't really follow the general selftests pattern. This patch makes necessary changes to fix that. Output before this patch: futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=0 owner=0 timeout=0ns Result: PASS Output after this patch: futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=0 owner=0 timeout=0ns selftests: futex-requeue-pi [PASS] Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to '')
-rw-r--r--tools/testing/selftests/futex/functional/futex_requeue_pi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testing/selftests/futex/functional/futex_requeue_pi.c b/tools/testing/selftests/futex/functional/futex_requeue_pi.c
index 3da06ad23996..d24ab7421e73 100644
--- a/tools/testing/selftests/futex/functional/futex_requeue_pi.c
+++ b/tools/testing/selftests/futex/functional/futex_requeue_pi.c
@@ -32,6 +32,7 @@
#include "futextest.h"
#include "logging.h"
+#define TEST_NAME "futex-requeue-pi"
#define MAX_WAKE_ITERS 1000
#define THREAD_MAX 10
#define SIGNAL_PERIOD_US 100
@@ -404,6 +405,6 @@ int main(int argc, char *argv[])
*/
ret = unit_test(broadcast, locked, owner, timeout_ns);
- print_result(ret);
+ print_result(TEST_NAME, ret);
return ret;
}