From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.74) (envelope-from ) id 1PsY7u-0000GL-0r for ltp-list@lists.sourceforge.net; Thu, 24 Feb 2011 10:08:50 +0000 Received: from [222.73.24.84] (helo=song.cn.fujitsu.com) by sog-mx-1.v43.ch3.sourceforge.com with esmtp (Exim 4.74) id 1PsY7s-0004zn-7Z for ltp-list@lists.sourceforge.net; Thu, 24 Feb 2011 10:08:49 +0000 Message-ID: <4D662E3A.1050802@cn.fujitsu.com> Date: Thu, 24 Feb 2011 18:08:58 +0800 From: Peng Haitao MIME-Version: 1.0 Subject: [LTP] [PATCH] The parent process need exit of waitpid11.c, waitpid12.c, waitpid13.c List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: Garrett Cooper Cc: ltp-list@lists.sourceforge.net 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 --- 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