提交 34539b6c 编写于 作者: A Alice Ferrazzi 提交者: Shuah Khan

kselftest: membarrier: make test names more informative

Make membarrier test names more informative.
Signed-off-by: NAlice Ferrazzi <alice.ferrazzi@gmail.com>
Signed-off-by: NPaul Elder <paul.elder@pitt.edu>
Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
上级 e4d1065b
...@@ -21,7 +21,7 @@ static int sys_membarrier(int cmd, int flags) ...@@ -21,7 +21,7 @@ static int sys_membarrier(int cmd, int flags)
static enum test_membarrier_status test_membarrier_cmd_fail(void) static enum test_membarrier_status test_membarrier_cmd_fail(void)
{ {
int cmd = -1, flags = 0; 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) { if (sys_membarrier(cmd, flags) != -1) {
ksft_test_result_fail(test_name); ksft_test_result_fail(test_name);
...@@ -35,7 +35,7 @@ static enum test_membarrier_status test_membarrier_cmd_fail(void) ...@@ -35,7 +35,7 @@ static enum test_membarrier_status test_membarrier_cmd_fail(void)
static enum test_membarrier_status test_membarrier_flags_fail(void) static enum test_membarrier_status test_membarrier_flags_fail(void)
{ {
int cmd = MEMBARRIER_CMD_QUERY, flags = 1; 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) { if (sys_membarrier(cmd, flags) != -1) {
ksft_test_result_fail(test_name); ksft_test_result_fail(test_name);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册