aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Yang <yangx.jy@cn.fujitsu.com>2021-01-12 10:02:26 +0800
committerXiao Yang <yangx.jy@cn.fujitsu.com>2021-01-25 10:42:27 +0800
commit4fe6a63d10257e8e976084d19d838549842b4766 (patch)
tree3e10f4f82b3284c5449528981c8940a55d794d8f
parentddf777dd839df80216dfc8f9456af0b7c48bf991 (diff)
syscalls/open01.c: Take use of TST_EXP_FD_SILENT
Current TST_EXP_FD macro reports the double passed for one subtest, for example: -------------------------------------------- ./open01 tst_test.c:1261: TINFO: Timeout per run is 0h 05m 00s open01.c:48: TPASS: open() with sticky bit returned fd 3 open01.c:59: TPASS: sticky bit is set as expected open01.c:48: TPASS: open() with sirectory bit returned fd 3 open01.c:59: TPASS: sirectory bit is set as expected Summary: passed 4 failed 0 broken 0 skipped 0 warnings 0 -------------------------------------------- It is just a minor cleanup rather than a fix. Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com> Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
-rw-r--r--testcases/kernel/syscalls/open/open01.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/testcases/kernel/syscalls/open/open01.c b/testcases/kernel/syscalls/open/open01.c
index 2f0ad550a..baf73ab11 100644
--- a/testcases/kernel/syscalls/open/open01.c
+++ b/testcases/kernel/syscalls/open/open01.c
@@ -45,7 +45,7 @@ static void verify_open(unsigned int n)
struct tcase *tc = &tcases[n];
struct stat buf;
- TST_EXP_FD(open(tc->filename, tc->flag, tc->mode),
+ TST_EXP_FD_SILENT(open(tc->filename, tc->flag, tc->mode),
"open() with %s", tc->desc);
if (!TST_PASS)
return;