From: Maninder Singh <maninder1.s@samsung.com>
To: "ltp-list@lists.sourceforge.net" <ltp-list@lists.sourceforge.net>
Subject: [LTP] [PATCH v2] kernel:flock: Change tst_resm() followed by tst_exit() to tst_brkm()
Date: Wed, 10 Jun 2015 12:40:44 +0000 (GMT) [thread overview]
Message-ID: <1464675384.830491433940044508.JavaMail.weblogic@epmlwas05b> (raw)
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
next reply other threads:[~2015-06-10 12:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-10 12:40 Maninder Singh [this message]
2015-06-10 13:25 ` [LTP] [PATCH v2] kernel:flock: Change tst_resm() followed by tst_exit() to tst_brkm() Stanislav Kholmanskikh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1464675384.830491433940044508.JavaMail.weblogic@epmlwas05b \
--to=maninder1.s@samsung.com \
--cc=ltp-list@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox