[LTP] [PATCH 02/13]Add missing parameters for tst_brkm()

tangchen
2011-01-06T10:54:51Z

Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>
---
testcases/kernel/syscalls/flock/flock04.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/testcases/kernel/syscalls/flock/flock04.c
b/testcases/kernel/syscalls/flock/flock04.c
index cd6b230..a3bc855 100644
--- a/testcases/kernel/syscalls/flock/flock04.c
+++ b/testcases/kernel/syscalls/flock/flock04.c
@@ -123,7 +123,7 @@ int main(int argc, char **argv)
exit(0);
} else
if (wait(&status) == -1)
- tst_brkm(TBROK|TERRNO, "wait failed");
+ tst_brkm(TBROK|TERRNO, cleanup, "wait failed");

pid = FORK_OR_VFORK();
if (pid == -1)
@@ -144,7 +144,7 @@ int main(int argc, char **argv)
exit(0);
} else
if (wait(&status) == -1)
- tst_brkm(TBROK|TERRNO, "wait failed");
+ tst_brkm(TBROK|TERRNO, cleanup, "wait failed");
TEST(flock(fd, LOCK_UN));
} else
tst_resm(TFAIL|TERRNO, "flock failed");
--
1.7.0.4

--
Best Regards,
Tang chen
--------------------------------------------------
Tang Chen
Development Dept.I
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)
No.6 Wenzhu Road, Nanjing, 210012, China
TEL: +86+25-86630566-8513
FUJITSU INTERNAL: 7998-8513
FAX: +86+25-83317685
EMail: tangchen@cn.fujitsu.com
--------------------------------------------------
This communication is for use by the intended recipient(s) only and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not an intended recipient of this communication, you are hereby notified that any dissemination, distribution or copying hereof is strictly prohibited. If you have received this communication in error, please notify me by reply e-mail, permanently delete this communication from your system, and destroy any hard copies you may have printed