]> git.sur5r.net Git - openldap/commitdiff
Fix non-portable test comparison
authorHoward Chu <hyc@openldap.org>
Fri, 29 Apr 2005 00:50:36 +0000 (00:50 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 29 Apr 2005 00:50:36 +0000 (00:50 +0000)
tests/scripts/test005-modrdn

index 389dd38b64eb97f3628a6948216afdd330887d9b..955391aefa06b860e26a435a9ea7b1520775e601 100755 (executable)
@@ -223,7 +223,7 @@ $LDAPMODRDN -D "$MANAGERDN" -h $LOCALHOST -p $PORT1 -w $PASSWD > \
        'cn=James A Jones 1, ou=Alumni Association, ou=People, dc=example, dc=com' 'cn=James A Jones 1'
 
 RC=$?
-if test $RC == 0 ; then
+if test $RC -eq 0 ; then
        echo "ldapmodrdn succeeded, should have failed!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit 1