public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] syscalls/waitpid12: break test if fork() failed
@ 2016-06-23  2:41 Han Pingtian
  2016-06-24  1:35 ` [LTP] [PATCH v2] " Han Pingtian
  0 siblings, 1 reply; 3+ messages in thread
From: Han Pingtian @ 2016-06-23  2:41 UTC (permalink / raw)
  To: ltp

Or this test case will kill a lot of processes on the system (when -1 ends up
passed as a pid to kill()).

Signed-off-by: Han Pingtian <hanpt@linux.vnet.ibm.com>
---
 testcases/kernel/syscalls/waitpid/waitpid12.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/kernel/syscalls/waitpid/waitpid12.c b/testcases/kernel/syscalls/waitpid/waitpid12.c
index bf64662..a09323b 100644
--- a/testcases/kernel/syscalls/waitpid/waitpid12.c
+++ b/testcases/kernel/syscalls/waitpid/waitpid12.c
@@ -132,7 +132,7 @@ int main(int argc, char **argv)
 		}
 
 		if (ret_val < 0)
-			tst_resm(TFAIL | TERRNO, "forking kid %d failed",
+			tst_brkm(TFAIL | TERRNO, NULL, "forking kid %d failed",
 				 kid_count);
 
 		/* parent */
-- 
2.5.5


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-08-16 14:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-23  2:41 [LTP] [PATCH] syscalls/waitpid12: break test if fork() failed Han Pingtian
2016-06-24  1:35 ` [LTP] [PATCH v2] " Han Pingtian
2016-08-16 14:13   ` Cyril Hrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox