]> git.sur5r.net Git - openldap/commitdiff
Fix checks of exit values from ldapcompare
authorHallvard Furuseth <hallvard@openldap.org>
Mon, 26 Sep 2005 05:15:06 +0000 (05:15 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Mon, 26 Sep 2005 05:15:06 +0000 (05:15 +0000)
tests/scripts/test032-chain

index 0d930ceef838fa3e10a5a7240c8f0c025acadccc..b0c6435d79297eaeea06add59d85edc75c424df8 100755 (executable)
@@ -137,11 +137,11 @@ for P in $PORT1 $PORT2 ; do
 
        DN="cn=Mark Elliot,ou=Alumni Association,ou=People,$BASEDN"
        echo "Comparing \"$DN\" on port $P..."
-       $LDAPCOMPARE -h $LOCALHOST -p $P "$DN" "cn:Mark Elliot"
+       $LDAPCOMPARE -h $LOCALHOST -p $P "$DN" "cn:Mark Elliot" \
                 > $TESTOUT 2>&1
 
        RC=$?
-       if test $RC != 0 ; then
+       if test $RC != 6 ; then
                echo "ldapcompare failed ($RC)!"
                test $KILLSERVERS != no && kill -HUP $KILLPIDS
                exit $RC
@@ -149,11 +149,11 @@ for P in $PORT1 $PORT2 ; do
 
        DN="ou=Other,$BASEDN"
        echo "Comparing \"$DN\" on port $P with manageDSAit control..."
-       $LDAPCOMPARE -h $LOCALHOST -p $P -M "$DN" "ou:Other"
+       $LDAPCOMPARE -h $LOCALHOST -p $P -M "$DN" "ou:Other" \
                 > $TESTOUT 2>&1
 
        RC=$?
-       if test $RC != 0 ; then
+       if test $RC != 6 ; then
                echo "ldapcompare failed ($RC)!"
                test $KILLSERVERS != no && kill -HUP $KILLPIDS
                exit $RC