From 94afad20b5177ef18a337a853fd033edd3b8b862 Mon Sep 17 00:00:00 2001 From: Björn Jacke Date: Tue, 26 Jun 2012 12:23:41 +0200 Subject: tests: make test_ldb portable, eliminate "local" keyword this is BASH only, don't use it. --- testprogs/blackbox/test_ldb.sh | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'testprogs') diff --git a/testprogs/blackbox/test_ldb.sh b/testprogs/blackbox/test_ldb.sh index 1609a95d06..f326672670 100755 --- a/testprogs/blackbox/test_ldb.sh +++ b/testprogs/blackbox/test_ldb.sh @@ -121,15 +121,11 @@ echo "Search Options Control Query test returned 0 items" failed=`expr $failed + 1` fi -wellknown_object_test() { - local guid=$1 - local object=$2 - local basedns - local dn - local r - local c - local n - local failed=0 +wellknown_object_test() +( + guid=$1 + object=$2 + failed=0 basedns=" " for dn in ${basedns}; do @@ -151,7 +147,7 @@ wellknown_object_test() { done return $failed -} +) wellknown_object_test 22B70C67D56E4EFB91E9300FCA3DC1AA ForeignSecurityPrincipals st=$? -- cgit