mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
never exit 0
This commit is contained in:
parent
f567219108
commit
c6ab2bd20d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user