]> git.sur5r.net Git - openldap/commitdiff
Fail is proxy cannot be started
authorKurt Zeilenga <kurt@openldap.org>
Wed, 29 Dec 2004 21:20:18 +0000 (21:20 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 29 Dec 2004 21:20:18 +0000 (21:20 +0000)
tests/scripts/test020-proxycache

index 20d7337777bc6f4cb1a0e2db4d0318a9863d9b09..c428601b13b37bf40b1a3fc4f5a61768709a462b 100755 (executable)
@@ -99,6 +99,12 @@ for i in 0 1 2 3 4 5; do
        sleep 5
 done
 
+if test $RC != 0 ; then
+       echo "ldapsearch failed ($RC)!"
+       test $KILLSERVERS != no && kill -HUP $KILLPIDS
+       exit $RC
+fi
+
 echo "Making queries on the proxy cache..." 
 echo "Query 1: filter:(sn=Jon) attrs: all" 
 $LDAPSEARCH -x -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT2 \