public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH v2] kernel:flock: Change tst_resm() followed by tst_exit() to tst_brkm()
@ 2015-06-10 12:40 Maninder Singh
  2015-06-10 13:25 ` Stanislav Kholmanskikh
  0 siblings, 1 reply; 2+ messages in thread
From: Maninder Singh @ 2015-06-10 12:40 UTC (permalink / raw)
  To: ltp-list@lists.sourceforge.net

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

Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
Signed-off-by: Akhilesh Kumar <akhilesh.k@samsung.com>
---
 testcases/kernel/syscalls/flock/flock01.c |   12 ++----------
 testcases/kernel/syscalls/flock/flock06.c |   10 ++--------
 2 files changed, 4 insertions(+), 18 deletions(-)

diff --git a/testcases/kernel/syscalls/flock/flock01.c b/testcases/kernel/syscalls/flock/flock01.c
index c010608..44b30d1 100644
--- a/testcases/kernel/syscalls/flock/flock01.c
+++ b/testcases/kernel/syscalls/flock/flock01.c
@@ -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");
 }
 
 /*
diff --git a/testcases/kernel/syscalls/flock/flock06.c b/testcases/kernel/syscalls/flock/flock06.c
index 1f1e9c3..0065c53 100644
--- a/testcases/kernel/syscalls/flock/flock06.c
+++ b/testcases/kernel/syscalls/flock/flock06.c
@@ -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);
 }
 
-- 
1.7.9.5
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

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

* Re: [LTP] [PATCH v2] kernel:flock: Change tst_resm() followed by tst_exit() to tst_brkm()
  2015-06-10 12:40 [LTP] [PATCH v2] kernel:flock: Change tst_resm() followed by tst_exit() to tst_brkm() Maninder Singh
@ 2015-06-10 13:25 ` Stanislav Kholmanskikh
  0 siblings, 0 replies; 2+ messages in thread
From: Stanislav Kholmanskikh @ 2015-06-10 13:25 UTC (permalink / raw)
  To: maninder1.s, ltp-list@lists.sourceforge.net



On 06/10/2015 03:40 PM, Maninder Singh wrote:
> As in commit 9fa8ad0 Change tst_resm() followed by tst_exit() to tst_brkm()
>
> Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
> Signed-off-by: Akhilesh Kumar <akhilesh.k@samsung.com>
> ---
>   testcases/kernel/syscalls/flock/flock01.c |   12 ++----------
>   testcases/kernel/syscalls/flock/flock06.c |   10 ++--------
>   2 files changed, 4 insertions(+), 18 deletions(-)

+ I slightly modified the subject and changed TFAIL to TBROK and pushed.

Thanks.

------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

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

end of thread, other threads:[~2015-06-10 13:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-10 12:40 [LTP] [PATCH v2] kernel:flock: Change tst_resm() followed by tst_exit() to tst_brkm() Maninder Singh
2015-06-10 13:25 ` Stanislav Kholmanskikh

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