From 1d92a35c4d6b4704870ddf7f1acc6dacff131602 Mon Sep 17 00:00:00 2001
From: Quanah Gibson-Mount <quanah@openldap.org>
Date: Mon, 14 Apr 2008 21:58:09 +0000
Subject: [PATCH] add was failing because not compliant with schema

---
 tests/scripts/test023-refint | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/tests/scripts/test023-refint b/tests/scripts/test023-refint
index 9e58707d0f..4caf801248 100755
--- a/tests/scripts/test023-refint
+++ b/tests/scripts/test023-refint
@@ -158,6 +158,7 @@ $LDAPADD -D "$REFINTDN" -h $LOCALHOST -p $PORT1 -w $PASSWD > \
 	$TESTOUT 2>&1 << ETEST
 dn: uid=special,ou=users,o=refint
 objectClass: inetOrgPerson
+objectClass: extensibleObject
 uid: special
 sn: special
 cn: special
@@ -171,6 +172,13 @@ givenName: special
 member: uid=alice,ou=users,o=refint
 ETEST
 
+RC=$?
+if test $RC != 0 ; then
+	echo "ldapadd failed ($RC)!"
+	test $KILLSERVERS != no && kill -HUP $KILLPIDS
+	exit $RC
+fi
+
 echo "Testing delete when referential attribute is a MUST..."
 $LDAPMODIFY -v -D "$REFINTDN" -h $LOCALHOST -p $PORT1 -w $PASSWD > \
 	$TESTOUT 2>&1 << EDEL
-- 
GitLab