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

Signed-off-by: Maninder Singh <maninder...@samsung.com>
Signed-off-by: Akhilesh Kumar <akhiles...@samsung.com>
---
 testcases/kernel/syscalls/flock/flock01.c |   12 ++----------
 1 file changed, 2 insertions(+), 10 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");
 }
 
 /*
-- 
1.7.9.5
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to