X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Ftestsuite%2Fstart-server.sh;h=3d19ffb5997f795fe2dea8d0b421f6b87a49bf0d;hp=15fa3f065bca64709a5d8ccb31a914be6a38562b;hb=6171beb7ab5dc0586581660852576f437470df63;hpb=7ad167f4c43948f19125123a27dbe68a93e863b8 diff --git a/src/testsuite/start-server.sh b/src/testsuite/start-server.sh index 15fa3f06..3d19ffb5 100755 --- a/src/testsuite/start-server.sh +++ b/src/testsuite/start-server.sh @@ -12,7 +12,7 @@ else id="1" fi -echo_n " starting server ${id} ..." +echo_n "starting server ${id} ..." # remove old logfiles, if this is the first server (ID 1) [ "$id" = "1" ] && rm -rf logs *.log @@ -35,6 +35,10 @@ fi # generate MOTD for test-server echo "This is an ngIRCd Test Server" > ngircd-test${id}.motd +# glibc memory checking, see malloc(3) +MALLOC_CHECK_=3 +export MALLOC_CHECK_ + # starting up test-server ... ./T-ngircd${id} -n -f ${srcdir}/ngircd-test${id}.conf $* \ >ngircd-test${id}.log 2>&1 & @@ -45,6 +49,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-