Skip to content

Commit

Permalink
syscalls/open01.c: Take use of TST_EXP_FD_SILENT
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Cyril Hrubis <[email protected]>
  • Loading branch information
yangx-jy committed Jan 25, 2021
1 parent ddf777d commit 4fe6a63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testcases/kernel/syscalls/open/open01.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4fe6a63

Please sign in to comment.