]> git.sur5r.net Git - openldap/blobdiff - tests/scripts/sql-test900-write
ITS#5189
[openldap] / tests / scripts / sql-test900-write
index 549b79b97bb4f53bc23f7472868018d6ee7bdb1f..b11b4fd3d1f4ae60c190b6f0f8128c00c001cdd3 100755 (executable)
@@ -2,7 +2,7 @@
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
-## Copyright 1998-2005 The OpenLDAP Foundation.
+## Copyright 1998-2007 The OpenLDAP Foundation.
 ## All rights reserved.
 ##
 ## Redistribution and use in source and binary forms, with or without
@@ -79,7 +79,7 @@ fi
 
 case ${RDBMS} in
        # list here the RDBMSes whose mapping allows writes
-postgres|ibmdb2)
+pgsql|ibmdb2)
        MANAGERDN="cn=Manager,${BASEDN}"
        echo "Testing add..."
        $LDAPMODIFY -v -c -D "$MANAGERDN" -w $PASSWD \
@@ -348,7 +348,7 @@ EOMODS
        if test $RC = 0 ; then
                echo "ldapmodify should have failed ($RC)!"
                test $KILLSERVERS != no && kill -HUP $KILLPIDS
-               exit $RC
+               exit 1
        fi
 
        echo "Modifying a referral (should fail)..."
@@ -367,7 +367,7 @@ EOMODS
        if test $RC = 0 ; then
                echo "ldapmodify should have failed ($RC)!"
                test $KILLSERVERS != no && kill -HUP $KILLPIDS
-               exit $RC
+               exit 1
        fi
 
        echo "Renaming a referral (should fail)..."
@@ -385,7 +385,7 @@ EOMODS
        if test $RC = 0 ; then
                echo "ldapmodify should have failed ($RC)!"
                test $KILLSERVERS != no && kill -HUP $KILLPIDS
-               exit $RC
+               exit 1
        fi
 
        echo "Deleting a referral (should fail)..."
@@ -401,7 +401,7 @@ EOMODS
        if test $RC = 0 ; then
                echo "ldapmodify should have failed ($RC)!"
                test $KILLSERVERS != no && kill -HUP $KILLPIDS
-               exit $RC
+               exit 1
        fi
 
        echo "Adding a referral..."
@@ -571,4 +571,3 @@ test $KILLSERVERS != no && kill -HUP $KILLPIDS
 
 echo ">>>>> Test succeeded"
 exit 0
-