]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Testsuite start-server.sh: return correct exit code.
authorAlexander Barton <alex@barton.de>
Wed, 3 Dec 2008 15:49:55 +0000 (16:49 +0100)
committerAlexander Barton <alex@barton.de>
Wed, 3 Dec 2008 15:49:55 +0000 (16:49 +0100)
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 ...

src/testsuite/start-server.sh

index 15fa3f065bca64709a5d8ccb31a914be6a38562b..90832a39f68913d757a46320bf96fd672446944b 100755 (executable)
@@ -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-