Skip to contentSkip to conversation

kernel:flock/flock01.c: Change tst_resm() followed by tst_exit() to tst_brkm()

PATCH In review Maninder Singh 2 participants 2 messages Jun 10, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel:flock/flock01.c: Change tst_resm() followed by tst_exit() to tst_brkm()

As in commit 9fa8ad0 Change tst_resm() followed by tst_exit() to tst_brkm()

---
 testcases/kernel/syscalls/flock/flock01.c |   12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)
testcases/kernel/syscalls/flock/flock01.c +2 -10
index c010608..44b30d1 100644
@@ -156,16 +156,8 @@ void setup(void)
 
 	/* creating temporary file */
 	fd = creat(filename, 0644);
-	if (fd < 0) {
-		tst_resm(TFAIL, "creating a new file failed");
-
-		/* Removing temp directory */
-		tst_rmdir();
-
-		/* exit with resturn code appropriate for result */
-		tst_exit();
-
-	}
+	if (fd < 0)
+		tst_brkm(TFAIL, tst_rmdir, "creating a new file failed");
 }
 
 /*
Signature · 6 lines
1.7.9.5
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
#1 lore raw

Hi.

Quoted 8 lines · Maninder Singh

As in commit 9fa8ad0 Change tst_resm() followed by tst_exit() to tst_brkm()

---
  testcases/kernel/syscalls/flock/flock01.c |   12 ++----------
  1 file changed, 2 insertions(+), 10 deletions(-)

You are doing exactly the same thing in two related test cases, so I don't see a reason to keep the changes in to separate patches.

Could you, please, merge this patch with the one for flock/flock06.c and resend?

Thanks.

------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list