From: Pierangelo Masarati Date: Tue, 30 Aug 2005 11:58:17 +0000 (+0000) Subject: never exit 0 X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~531 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c6ab2bd20d31eab5e308705083ceef53ff9b8835;p=openldap never exit 0 --- diff --git a/tests/scripts/test041-aci b/tests/scripts/test041-aci index 09f38731ac..c56121bb1d 100755 --- a/tests/scripts/test041-aci +++ b/tests/scripts/test041-aci @@ -79,8 +79,11 @@ $LDAPSEARCH -s base -b "$BASEDN" -h $LOCALHOST -p $PORT1 \ '(objectclass=*)' >> $SEARCHOUT 2>> $TESTOUT RC=$? if test $RC != 32 ; then - echo "ldapsearch should have failed ($RC)!" + echo "ldapsearch should have failed with noSuchObject ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS + if test $RC = 0 ; then + exit -1 + fi exit $RC fi @@ -93,7 +96,7 @@ RC=$? if test $RC = 0 ; then echo "ldapwhoami should have failed!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit -1 fi # Populate ACIs