]> git.sur5r.net Git - openldap/commitdiff
never exit 0
authorPierangelo Masarati <ando@openldap.org>
Tue, 30 Aug 2005 11:58:17 +0000 (11:58 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 30 Aug 2005 11:58:17 +0000 (11:58 +0000)
tests/scripts/test041-aci

index 09f38731accbdf84c5a97f9773f52410305b333e..c56121bb1d28103b0fa93928039b0cc02cba4347 100755 (executable)
@@ -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