]> git.sur5r.net Git - openldap/blobdiff - tests/scripts/test024-unique
ITS#3671 must release conn->c_mutex to allow blocked writers to exit
[openldap] / tests / scripts / test024-unique
index a6939a9220ed2707b8686e20d58dfd0b3694e6c6..9f2db4aa8e4a607558ba61850b7a14bd0d839afc 100755 (executable)
@@ -1,8 +1,8 @@
-#! /bin/sh -xv
+#! /bin/sh
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
-## Copyright 2004 The OpenLDAP Foundation.
+## Copyright 2004-2005 The OpenLDAP Foundation.
 ## All rights reserved.
 ##
 ## Redistribution and use in source and binary forms, with or without
@@ -63,7 +63,8 @@ echo "Adding a unique record..."
 
 #$LDAPADD -D "$UNIQUEDN" -h $LOCALHOST -p $PORT1 -w $PASSWD > \
 #      $TESTOUT 2>&1 << EOTUNIQ1
-$LDAPADD -D "$UNIQUEDN" -h $LOCALHOST -p $PORT1 -w $PASSWD << EOTUNIQ1
+$LDAPADD -D "$UNIQUEDN" -h $LOCALHOST -p $PORT1 -w $PASSWD \
+       > /dev/null << EOTUNIQ1
 dn: uid=dave,ou=users,o=unique
 objectClass: inetOrgPerson
 uid: dave
@@ -107,10 +108,10 @@ givenName: Bill
 EOTUNIQ2
 
 RC=$?
-if test $RC != 0 ; then
-       echo "ldapadd failed ($RC)!"
+if test $RC != 19 ; then
+       echo "unique check failed ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
-       exit $RC
+       exit -1
 fi