]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
kselftest: membarrier: make test names more informative
authorAlice Ferrazzi <alice.ferrazzi@gmail.com>
Thu, 15 Jun 2017 16:19:16 +0000 (01:19 +0900)
committerShuah Khan <shuahkh@osg.samsung.com>
Fri, 16 Jun 2017 00:10:37 +0000 (18:10 -0600)
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>
tools/testing/selftests/membarrier/membarrier_test.c

index 18cb9d1da4e441e1647202ccbac3f14015410276..74a712eab2e6665c59859ab124fe534979b9f558 100644 (file)
@@ -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);