commit - c74ac55832238562fc9d00c2050f1d8d62c2ad5c
commit + 0551f688f69419d82dae8a5692e1348d9da2a719
blob - 8e6c63818c511ee82cabfba01508f5879cd87379
blob + 57d5962578c6455e095e2a0b6ba6783c33c8f5b0
--- src/testsuite/getpid.sh
+++ src/testsuite/getpid.sh
#!/bin/sh
# ngIRCd Test Suite
-# $Id: getpid.sh,v 1.2 2002/11/10 14:28:06 alex Exp $
+# $Id: getpid.sh,v 1.3 2003/04/22 19:27:50 alex Exp $
# wurde ein Name uebergeben?
[ $# -ne 1 ] && exit 1
# PID ermitteln
ps $PS_FLAGS > procs.tmp
-pid=$( cat procs.tmp | grep "$1" | awk "{print \$$PS_PIDCOL}" | sort -n | head $HEAD_FLAGS )
+cat procs.tmp | grep "$1" | awk "{print \$$PS_PIDCOL}" | sort -n > pids.tmp
+pid=`head $HEAD_FLAGS pids.tmp`
+rm -rf procs.tmp pids.tmp
# ermittelte PID validieren
[ "$pid" -gt 1 ] > /dev/null 2>&1
blob - f9364462df5899795762237f25d7f55413fb12a4
blob + 51e56da1cb1e1012df5e75746ea6ae9625562724
--- src/testsuite/stress-server.sh
+++ src/testsuite/stress-server.sh
#!/bin/sh
# ngIRCd Test Suite
-# $Id: stress-server.sh,v 1.6 2002/09/23 22:07:43 alex Exp $
+# $Id: stress-server.sh,v 1.7 2003/04/22 19:27:50 alex Exp $
[ -z "$srcdir" ] && srcdir=`dirname $0`
-[ $1 -gt 0 ] 2> /dev/null && CLIENTS=$1 || CLIENTS=5
+[ "$1" -gt 0 ] 2> /dev/null && CLIENTS="$1" || CLIENTS=5
name=`basename $0`
test=`echo ${name} | cut -d '.' -f 1`