From e85edd9e55d79b7e475f009df64accb65f317905 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Mon, 12 Sep 2005 10:31:29 +0000 Subject: ECHILD error at waitpid on Red Hat systems (Peter Pramberger and Sascha Runschke - 1250191) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1213 f882894a-f735-0410-b71e-b25c423dba1c --- config_test/run_tests | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 config_test/run_tests (limited to 'config_test/run_tests') diff --git a/config_test/run_tests b/config_test/run_tests new file mode 100755 index 00000000..e41db232 --- /dev/null +++ b/config_test/run_tests @@ -0,0 +1,16 @@ +#!/bin/ksh + +i=0 +success=0 +fail=0 +while [[ $i -lt $1 ]] ; do + ./child_test + if [[ $? -eq 0 ]] ; then + success=$(($success+1)) + else + fail=$((fail+1)) + fi + i=$(($i+1)) +done +print "Success=$success Fail=$fail" +[[ $fail -gt 0 ]] && exit 1 -- cgit v1.2.3-74-g34f1