From 98c6d5259374c98582f9c426781a9b1856d0ac59 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Wed, 30 Nov 2011 11:41:50 +0100 Subject: [PATCH] ITS#7101 test001: Skip back-ldif unordered slapadd --- tests/scripts/test001-slapadd | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/scripts/test001-slapadd b/tests/scripts/test001-slapadd index 7e320fa451..7be30aaf72 100755 --- a/tests/scripts/test001-slapadd +++ b/tests/scripts/test001-slapadd @@ -71,6 +71,10 @@ if test $? != 0 ; then exit 1 fi +if test $BACKEND = ldif ; then + echo "Skipping test of unordered slapadd (unsupported in ldif backend)" +else + kill -HUP $KILLPIDS rm -f $DBDIR1/* @@ -110,10 +114,9 @@ for i in 0 1 2 3 4 5; do sleep 5 done -test $KILLSERVERS != no && kill -HUP $KILLPIDS - if test $RC != 0 ; then echo "ldapsearch failed ($RC)!" + test $KILLSERVERS != no && kill -HUP $KILLPIDS exit $RC fi @@ -128,9 +131,14 @@ if test $? != 0 ; then echo "comparison failed - database was not created correctly" echo $SEARCHFLT $LDIFFLT $DIFF $SEARCHFLT $LDIFFLT + test $KILLSERVERS != no && kill -HUP $KILLPIDS exit 1 fi +fi + +test $KILLSERVERS != no && kill -HUP $KILLPIDS + echo ">>>>> Test succeeded" test $KILLSERVERS != no && wait -- 2.39.5