never exit 0

This commit is contained in:
Pierangelo Masarati 2005-08-30 11:58:17 +00:00
parent f567219108
commit c6ab2bd20d

View File

@ -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