public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH v2 1/3] umount01: Simplify test using TST_ macros
@ 2023-10-27  9:37 Yang Xu
  2023-10-27  9:38 ` [LTP] [PATCH v2 2/3] umount02: " Yang Xu
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Yang Xu @ 2023-10-27  9:37 UTC (permalink / raw)
  To: ltp

Reviewed-by: Petr Vorel <pvorel@suse.cz>
Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
---
 testcases/kernel/syscalls/umount/umount01.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/testcases/kernel/syscalls/umount/umount01.c b/testcases/kernel/syscalls/umount/umount01.c
index d05296dce..47e35eaeb 100644
--- a/testcases/kernel/syscalls/umount/umount01.c
+++ b/testcases/kernel/syscalls/umount/umount01.c
@@ -7,7 +7,6 @@
  * It is intended to provide a limited exposure of the system call.
  */
 
-#include <errno.h>
 #include <sys/mount.h>
 #include "tst_test.h"
 
@@ -23,7 +22,7 @@ static void verify_umount(void)
 		mount_flag = 1;
 	}
 
-	TEST(umount(MNTPOINT));
+	TST_EXP_PASS(umount(MNTPOINT));
 
 	if (TST_RET != 0 && TST_ERR == EBUSY) {
 		tst_res(TINFO, "umount() Failed with EBUSY "
@@ -31,12 +30,6 @@ static void verify_umount(void)
 			"is probing newly mounted dirs");
 	}
 
-	if (TST_RET != 0) {
-		tst_res(TFAIL | TTERRNO, "umount() Failed");
-		return;
-	}
-
-	tst_res(TPASS, "umount() Passed");
 	mount_flag = 0;
 }
 
-- 
2.39.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-10-27 17:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-27  9:37 [LTP] [PATCH v2 1/3] umount01: Simplify test using TST_ macros Yang Xu
2023-10-27  9:38 ` [LTP] [PATCH v2 2/3] umount02: " Yang Xu
2023-10-27 17:01   ` Petr Vorel
2023-10-27  9:38 ` [LTP] [PATCH v2 3/3] umount03: " Yang Xu
2023-10-27 17:18 ` [LTP] [PATCH v2 1/3] umount01: " Petr Vorel
2023-10-27 17:26   ` Petr Vorel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox