From: Peng Haitao <penght@cn.fujitsu.com>
To: Garrett Cooper <yanegomi@gmail.com>
Cc: ltp-list@lists.sourceforge.net
Subject: [LTP] [PATCH] The parent process need exit of waitpid11.c, waitpid12.c, waitpid13.c
Date: Thu, 24 Feb 2011 18:08:58 +0800 [thread overview]
Message-ID: <4D662E3A.1050802@cn.fujitsu.com> (raw)
Hi Garrett,
There are two processes in cases, and the test need run from child process,
so parent process should exit after invoking cleanup().
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
---
testcases/kernel/syscalls/waitpid/waitpid11.c | 1 +
testcases/kernel/syscalls/waitpid/waitpid12.c | 1 +
testcases/kernel/syscalls/waitpid/waitpid13.c | 1 +
3 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/testcases/kernel/syscalls/waitpid/waitpid11.c b/testcases/kernel/syscalls/waitpid/waitpid11.c
index 1e631da..d61b624 100644
--- a/testcases/kernel/syscalls/waitpid/waitpid11.c
+++ b/testcases/kernel/syscalls/waitpid/waitpid11.c
@@ -112,6 +112,7 @@ int main(int ac, char **av)
tst_resm(TPASS, "%s PASSED", TCID);
}
cleanup();
+ tst_exit();
} else if (pid < 0) {
tst_brkm(TBROK, cleanup, "fork failed");
}
diff --git a/testcases/kernel/syscalls/waitpid/waitpid12.c b/testcases/kernel/syscalls/waitpid/waitpid12.c
index 5c0ebe6..ac99c9a 100644
--- a/testcases/kernel/syscalls/waitpid/waitpid12.c
+++ b/testcases/kernel/syscalls/waitpid/waitpid12.c
@@ -113,6 +113,7 @@ int main(int argc, char **argv)
tst_resm(TPASS, "%s PASSED", TCID);
}
cleanup();
+ tst_exit();
} else if (pid < 0) {
tst_brkm(TBROK, cleanup, "fork failed");
}
diff --git a/testcases/kernel/syscalls/waitpid/waitpid13.c b/testcases/kernel/syscalls/waitpid/waitpid13.c
index 8b908a9..7f7393e 100644
--- a/testcases/kernel/syscalls/waitpid/waitpid13.c
+++ b/testcases/kernel/syscalls/waitpid/waitpid13.c
@@ -110,6 +110,7 @@ int main(int ac, char **av)
tst_resm(TPASS, "%s PASSED", TCID);
}
cleanup();
+ tst_exit();
} else if (pid < 0) {
tst_brkm(TBROK, cleanup, "fork failed");
}
--
1.7.1
--
Best Regards,
Peng Haitao
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next reply other threads:[~2011-02-24 10:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-24 10:08 Peng Haitao [this message]
2011-02-24 16:46 ` [LTP] [PATCH] The parent process need exit of waitpid11.c, waitpid12.c, waitpid13.c Garrett Cooper
2011-02-28 1:06 ` Peng Haitao
2011-03-04 10:13 ` Garrett Cooper
2011-03-04 15:59 ` Caspar Zhang
2011-03-04 16:17 ` Garrett Cooper
2011-03-09 5:22 ` Peng Haitao
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=4D662E3A.1050802@cn.fujitsu.com \
--to=penght@cn.fujitsu.com \
--cc=ltp-list@lists.sourceforge.net \
--cc=yanegomi@gmail.com \
/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