From c6ab2bd20d31eab5e308705083ceef53ff9b8835 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 30 Aug 2005 11:58:17 +0000 Subject: [PATCH] never exit 0 --- tests/scripts/test041-aci | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 -- 2.39.5