Skip to contentSkip to conversation

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

PATCH Superseded Maninder Singh 1 participant 1 message Jun 10, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel:flock/flock06.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/flock06.c |   10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)
testcases/kernel/syscalls/flock/flock06.c +2 -8
index 1f1e9c3..0065c53 100644
@@ -160,14 +160,8 @@ void setup(void)
 
 	/* creating temporary file */
 	fd = creat(filename, 0666);
-	if (fd < 0) {
-		tst_resm(TFAIL, "creating a new file failed");
-
-		/* Removing temp dir */
-		tst_rmdir();
-
-		tst_exit();
-	}
+	if (fd < 0)
+		tst_brkm(TFAIL, tst_rmdir, "creating a new file failed");
 	close(fd);
 }
 
Signature · 6 lines
1.7.9.5
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list