summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-08-15 08:55:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:01:51 -0500
commit44dc2839e45f14eb88d43a7640a65bbe72c9ee35 (patch)
tree74a9c4f05f45516cf79b236a35e491e7952dac6c /source4
parent645e87281c78f944fd6fe2ae52c6e0f058c665ff (diff)
downloadsamba-44dc2839e45f14eb88d43a7640a65bbe72c9ee35.tar.gz
samba-44dc2839e45f14eb88d43a7640a65bbe72c9ee35.tar.bz2
samba-44dc2839e45f14eb88d43a7640a65bbe72c9ee35.zip
r24447: fix samba3-cli pidl tests
metze (This used to be commit 91fb099b3dd5c58608f1fbf65ed77acbc609598f)
Diffstat (limited to 'source4')
-rwxr-xr-xsource4/pidl/tests/samba3-cli.pl14
1 files changed, 9 insertions, 5 deletions
diff --git a/source4/pidl/tests/samba3-cli.pl b/source4/pidl/tests/samba3-cli.pl
index c5537c145e..b2b12d2d43 100755
--- a/source4/pidl/tests/samba3-cli.pl
+++ b/source4/pidl/tests/samba3-cli.pl
@@ -4,22 +4,26 @@
use strict;
use warnings;
-use Test::More tests => 4;
+use Test::More tests => 7;
use FindBin qw($RealBin);
use lib "$RealBin";
use Util;
use Parse::Pidl::Util qw(MyDumper);
-use Parse::Pidl::Samba3::ClientNDR qw(GenerateFunctionInEnv ParseFunction);
+use Parse::Pidl::Samba3::ClientNDR qw(ParseFunction);
+use Parse::Pidl::Samba4::NDR::Parser qw(GenerateFunctionInEnv GenerateFunctionOutEnv);
# Make sure GenerateFunctionInEnv and GenerateFunctionOutEnv work
my $fn = { ELEMENTS => [ { DIRECTION => ["in"], NAME => "foo" } ] };
-is_deeply({ "foo" => "r.in.foo" }, GenerateFunctionInEnv($fn));
+is_deeply({ "foo" => "r.in.foo" }, GenerateFunctionInEnv($fn, "r."));
+is_deeply({ "foo" => "r.in.foo" }, GenerateFunctionOutEnv($fn, "r."));
$fn = { ELEMENTS => [ { DIRECTION => ["out", "in"], NAME => "foo" } ] };
-is_deeply({ "foo" => "r.in.foo" }, GenerateFunctionInEnv($fn));
+is_deeply({ "foo" => "r.in.foo" }, GenerateFunctionInEnv($fn, "r."));
+is_deeply({ "foo" => "r.out.foo" }, GenerateFunctionOutEnv($fn, "r."));
$fn = { ELEMENTS => [ { DIRECTION => ["out"], NAME => "foo" } ] };
-is_deeply({ }, GenerateFunctionInEnv($fn));
+is_deeply({ }, GenerateFunctionInEnv($fn, "r."));
+is_deeply({ "foo" => "r.out.foo" }, GenerateFunctionOutEnv($fn, "r."));
my $x = new Parse::Pidl::Samba3::ClientNDR();