]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/testsuite/start-server.sh
Don't send nick name as default PART reason
[ngircd-alex.git] / src / testsuite / start-server.sh
index 15fa3f065bca64709a5d8ccb31a914be6a38562b..3d19ffb5997f795fe2dea8d0b421f6b87a49bf0d 100755 (executable)
@@ -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-