X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tests%2Fscripts%2Ftest024-unique;h=1851bcab6a15a5c02c4425c15ddaa92461353650;hb=3743a5a68e4d608949d5fd04904733ee5c1ac959;hp=34ed82603585e8325d1171c55c9587ac42ab9ebb;hpb=e9f1452624c7fc828d45ebc1f3cc6fcdf03991db;p=openldap diff --git a/tests/scripts/test024-unique b/tests/scripts/test024-unique index 34ed826035..1851bcab6a 100755 --- a/tests/scripts/test024-unique +++ b/tests/scripts/test024-unique @@ -2,7 +2,7 @@ # $OpenLDAP$ ## This work is part of OpenLDAP Software . ## -## Copyright 2004-2009 The OpenLDAP Foundation. +## Copyright 2004-2012 The OpenLDAP Foundation. ## All rights reserved. ## ## Redistribution and use in source and binary forms, with or without @@ -21,6 +21,9 @@ if test $UNIQUE = uniqueno; then exit 0 fi +RCODEconstraint=19 +test $BACKEND = null && RCODEconstraint=0 + mkdir -p $TESTDIR $DBDIR1 $SLAPPASSWD -g -n >$CONFIGPWF @@ -107,7 +110,7 @@ employeeType: contractor givenName: Bill EOTUNIQ2 RC=$? -if test $RC != 19 ; then +if test $RC != $RCODEconstraint ; then echo "unique check failed ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS exit -1 @@ -223,7 +226,7 @@ employeeType: contractor givenName: Bill EOTUNIQ2 RC=$? -if test $RC != 19 ; then +if test $RC != $RCODEconstraint ; then echo "unique check failed ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS exit -1 @@ -280,7 +283,7 @@ employeeType: contractor givenName: Bill EOTUNIQ2 RC=$? -if test $RC != 19 ; then +if test $RC != $RCODEconstraint ; then echo "olcUniqueAttribtue single deletion hit the wrong value" test $KILLSERVERS != no && kill -HUP $KILLPIDS exit -1 @@ -340,7 +343,7 @@ employeeType: contractor givenName: Bill EOTUNIQ2 RC=$? -if test $RC != 19 ; then +if test $RC != $RCODEconstraint ; then echo "unique check failed ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS exit -1 @@ -505,7 +508,7 @@ cn: elvis EOF RC=$? -if test $RC != 19 ; then +if test $RC != $RCODEconstraint ; then echo "unique check failed ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS exit -1 @@ -577,7 +580,7 @@ description: left the building EOF RC=$? -if test $RC != 19 ; then +if test $RC != $RCODEconstraint ; then echo "unique check failed ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS exit -1