From: Howard Chu Date: Sat, 29 Apr 2006 08:46:32 +0000 (+0000) Subject: ITS#4491, abort test if debug messages are missing X-Git-Tag: OPENLDAP_REL_ENG_2_4_1ALPHA~2^2~108 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e59fb036c9a9646b0c2a58178ddb43d166ce8a24;p=openldap ITS#4491, abort test if debug messages are missing --- diff --git a/tests/scripts/test020-proxycache b/tests/scripts/test020-proxycache index 2a94cb65aa..f28062bc9c 100755 --- a/tests/scripts/test020-proxycache +++ b/tests/scripts/test020-proxycache @@ -123,6 +123,15 @@ if test $RC != 0 ; then exit $RC fi +# ITS#4491, if debug messages are unavailable, we can't verify the tests. +grep "query template" $LOG2 > /dev/null +RC=$? +if test $RC != 0 ; then + echo "Debug messages unavailable, test aborted..." + test $KILLSERVERS != no && kill -HUP $KILLPIDS && wait + exit 0 +fi + echo "Query 2: filter:(|(cn=*Jon*)(sn=Jon*)) attrs:cn sn title uid" echo "# Query 2: filter:(|(cn=*Jon*)(sn=Jon*)) attrs:cn sn title uid" >> $SLAVEOUT $LDAPSEARCH -x -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT2 \