X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tests%2Fscripts%2Ftest062-config-delete;h=2879b983fdaf058b5b65b84df824edf046fbb003;hb=1add666e5a6ace4281df809ad5d37c4534333616;hp=0cb103953b5c7cb30f8f735e03762b68bb3a6726;hpb=8623c98726058d801aea6ee505ea307618334bc2;p=openldap diff --git a/tests/scripts/test062-config-delete b/tests/scripts/test062-config-delete index 0cb103953b..262264e9b6 100755 --- a/tests/scripts/test062-config-delete +++ b/tests/scripts/test062-config-delete @@ -2,7 +2,7 @@ # $OpenLDAP$ ## This work is part of OpenLDAP Software . ## -## Copyright 1998-2011 The OpenLDAP Foundation. +## Copyright 1998-2015 The OpenLDAP Foundation. ## All rights reserved. ## ## Redistribution and use in source and binary forms, with or without @@ -106,7 +106,7 @@ rm -f $RCOUT ( $LDAPSEARCH -D cn=config -H $URI1 -y $CONFIGPWF -bcn=config -E \!sync=rp >/dev/null 2>&1 RC=$? - touch $RCOUT + echo $RC > $RCOUT exit $RC ) & @@ -137,10 +137,10 @@ done if test -f "$RCOUT" ; then wait $SEARCHPID - SEARCHRC=$? + SEARCHRC=`cat $RCOUT` echo "Checking return code of backgrounded RefreshAndPersist search ..." - if test $SEARCHRC != 52 ; then - echo "Error: Backgrounded ldapsearch did return the wrong error code: $SEARCHRC" + if test 52 != "$SEARCHRC" ; then + echo "Error: Backgrounded ldapsearch returned the wrong error code: $SEARCHRC" RC=1 else echo "Exit code correct."