[LTP] [RFC PATCH v2 2/2] syscalls/access02.c: Take use of TST_EXP_SILENT_PASS
Xiao Yang
yangx.jy@cn.fujitsu.com
Sun Jan 10 14:04:36 CET 2021
Current TST_EXP_PASS macro reports the double passed for one subtest:
--------------------------------------------
tst_test.c:1261: TINFO: Timeout per run is 0h 05m 00s
access02.c:62: TPASS: access(file_f, F_OK) as root passed
access02.c:141: TPASS: access(file_f, F_OK) as root behaviour is correct.
--------------------------------------------
It is just a minor cleanup rather than a fix.
Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
---
testcases/kernel/syscalls/access/access02.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testcases/kernel/syscalls/access/access02.c b/testcases/kernel/syscalls/access/access02.c
index ff3e7b6f4..19bf87c54 100644
--- a/testcases/kernel/syscalls/access/access02.c
+++ b/testcases/kernel/syscalls/access/access02.c
@@ -59,7 +59,7 @@ static void access_test(struct tcase *tc, const char *user)
struct stat stat_buf;
char command[64];
- TST_EXP_PASS(access(tc->pathname, tc->mode),
+ TST_EXP_SILENT_PASS(access(tc->pathname, tc->mode),
"access(%s, %s) as %s", tc->pathname, tc->name, user);
if (!TST_PASS)
--
2.21.0
More information about the ltp
mailing list