From: Alexander Barton Date: Wed, 3 Dec 2008 15:49:55 +0000 (+0100) Subject: Testsuite start-server.sh: return correct exit code. X-Git-Tag: rel-13~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=85ce82e504d4cd7d505d215c973e55cf14101cd8;p=ngircd Testsuite start-server.sh: return correct exit code. src/testsuite/start-server.sh returns 0 when no errors occurred and the daemon has been startet and 1 on errors. Always returning 0 is wrong ... --- diff --git a/src/testsuite/start-server.sh b/src/testsuite/start-server.sh index 15fa3f06..90832a39 100755 --- a/src/testsuite/start-server.sh +++ b/src/testsuite/start-server.sh @@ -45,6 +45,6 @@ pid=`./getpid.sh T-ngircd${id}` [ -n "$pid" ] && kill -0 $pid > /dev/null 2>&1; r=$? [ $r -eq 0 ] && echo " ok." || echo " failure!" -exit +exit $r # -eof-