From 6b4535a1427fabbfc1cd19a6841a5b71694170cd Mon Sep 17 00:00:00 2001
From: smaguin <smaguin@localhost>
Date: Thu, 28 Jun 2007 13:12:25 +0000
Subject: [PATCH] check expected code under ldapsearchWithScript
---
opendj-sdk/opends/tests/functional-tests/shared/functions/ldap.xml | 22 ++++++++++++++--------
1 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/opendj-sdk/opends/tests/functional-tests/shared/functions/ldap.xml b/opendj-sdk/opends/tests/functional-tests/shared/functions/ldap.xml
index 76cd0b9..506aba5 100755
--- a/opendj-sdk/opends/tests/functional-tests/shared/functions/ldap.xml
+++ b/opendj-sdk/opends/tests/functional-tests/shared/functions/ldap.xml
@@ -892,6 +892,12 @@
</function-arg-description>
<function-arg-property name="type" value="string"/>
</function-arg-def>
+ <function-arg-def name="expected" type="optional" default="0">
+ <function-arg-description>
+ expected value. Default is 0
+ </function-arg-description>
+ <function-arg-property name="type" value="integer"/>
+ </function-arg-def>
</function-map-args>
<sequence>
@@ -1064,12 +1070,11 @@
<stderr mode="'stdout'"/>
<returnstdout/>
</process>
-
- <call function="'checkRC'">
+ <call function="'checktestRC'">
{ 'returncode' : RC ,
- 'result' : STAXResult }
+ 'result' : STAXResult,
+ 'expected' : expected }
</call>
-
</sequence>
</function>
@@ -2418,6 +2423,7 @@
</function-arg-description>
<function-arg-property name="type" value="string"/>
</function-arg-def>
+
</function-map-args>
<sequence>
@@ -2522,10 +2528,10 @@
<returnstdout/>
</process>
- <call function="'checkRC'">
- { 'returncode' : RC ,
- 'result' : STAXResult }
- </call>
+ <call function="'checktestRC'">
+ { 'returncode' : RC ,
+ 'result' : STAXResult }
+ </call>
</sequence>
</function>
--
Gitblit v1.10.0