aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/membarrier/membarrier_test.c
diff options
context:
space:
mode:
authorAlice Ferrazzi <alice.ferrazzi@gmail.com>2017-06-16 01:19:16 +0900
committerShuah Khan <shuahkh@osg.samsung.com>2017-06-15 18:10:37 -0600
commit34539b6c487c3d1cd1f3cafd1643e5ca89167813 (patch)
tree06394a5f9080d0f188a8a454f21c3fdbad1c26b5 /tools/testing/selftests/membarrier/membarrier_test.c
parentkselftest: make callers of ksft_exit_skip() output the reason for skipping (diff)
downloadlinux-dev-34539b6c487c3d1cd1f3cafd1643e5ca89167813.tar.xz
linux-dev-34539b6c487c3d1cd1f3cafd1643e5ca89167813.zip
kselftest: membarrier: make test names more informative
Make membarrier test names more informative. Signed-off-by: Alice Ferrazzi <alice.ferrazzi@gmail.com> Signed-off-by: Paul Elder <paul.elder@pitt.edu> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing/selftests/membarrier/membarrier_test.c')
-rw-r--r--tools/testing/selftests/membarrier/membarrier_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/membarrier/membarrier_test.c b/tools/testing/selftests/membarrier/membarrier_test.c
index 18cb9d1da4e4..74a712eab2e6 100644
--- a/tools/testing/selftests/membarrier/membarrier_test.c
+++ b/tools/testing/selftests/membarrier/membarrier_test.c
@@ -21,7 +21,7 @@ static int sys_membarrier(int cmd, int flags)
static enum test_membarrier_status test_membarrier_cmd_fail(void)
{
int cmd = -1, flags = 0;
- const char *test_name = "membarrier command fail";
+ const char *test_name = "membarrier command cmd=-1. Wrong command should fail";
if (sys_membarrier(cmd, flags) != -1) {
ksft_test_result_fail(test_name);
@@ -35,7 +35,7 @@ static enum test_membarrier_status test_membarrier_cmd_fail(void)
static enum test_membarrier_status test_membarrier_flags_fail(void)
{
int cmd = MEMBARRIER_CMD_QUERY, flags = 1;
- const char *test_name = "Wrong flags should fail";
+ const char *test_name = "MEMBARRIER_CMD_QUERY, flags=1, Wrong flags should fail";
if (sys_membarrier(cmd, flags) != -1) {
ksft_test_result_fail(test_name);