From 35b6788e5bf43e61b0fb9b3b00558e098eee6f6a Mon Sep 17 00:00:00 2001
From: andrug <andrug@localhost>
Date: Tue, 18 Mar 2008 13:08:17 +0000
Subject: [PATCH] add scope=local for functions declaration and fix related issues

---
 opends/tests/system-tests/phases/shared/ldap.xml |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/opends/tests/system-tests/phases/shared/ldap.xml b/opends/tests/system-tests/phases/shared/ldap.xml
index 5bb0f0c..c85050f 100755
--- a/opends/tests/system-tests/phases/shared/ldap.xml
+++ b/opends/tests/system-tests/phases/shared/ldap.xml
@@ -129,10 +129,9 @@
               'fileFd'         : fileFd
             }
           </call>
-          
           <script>
-            ldapRC=RC
-            ldapReason=STAXResult
+            ldapRC=STAXResult[0]
+            ldapReason=STAXResult[1]
           </script>
           
           <call function="'sleep'">
@@ -174,7 +173,7 @@
 
 
   <!-- ************************************************************ -->
-  <function name="verifyTrees">
+  <function name="verifyTrees" scope="local">
     <function-prolog>
       This function verifies that the tree of an instance belonging to an instances list 
       (ie instance[n]) is synchronized with instance[n+1]
@@ -284,7 +283,7 @@
               'fileFd'         : fileFd
             }
           </call>
-          <if expr="RC != 0">
+          <if expr="STAXResult[0] != 0">
             <!-- == If the reference tree could not be retrieved, return an error == -->
             <sequence>
               <call function="'writeEndTagStep'">{ 'fileFd' : fileFd}</call>
@@ -383,7 +382,7 @@
 
 
   <!-- ************************************************************ -->
-  <function name="ldapSearch">
+  <function name="ldapSearch" scope="local">
     <function-prolog>
       This function performs an ldapsearch
     </function-prolog>  

--
Gitblit v1.10.0