diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-04-15 16:56:15 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-04-15 16:56:15 +0200 |
commit | dfedfae1cd1c1af54609fd56dafe8eb026f9382c (patch) | |
tree | 7a07bcd46bf711f5ed5ed5d2dd5774f22bf5df94 /source4/pidl/tests | |
parent | cb5873f36d5f67b51afd9327df114ff7c1b529d0 (diff) | |
parent | 7bb2ebb884c35676a6cf03efe6ecc15b3e232a43 (diff) | |
download | samba-dfedfae1cd1c1af54609fd56dafe8eb026f9382c.tar.gz samba-dfedfae1cd1c1af54609fd56dafe8eb026f9382c.tar.bz2 samba-dfedfae1cd1c1af54609fd56dafe8eb026f9382c.zip |
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
(This used to be commit 66327b8bd8dbde140b93f000a81ba13e743f27b0)
Diffstat (limited to 'source4/pidl/tests')
-rwxr-xr-x | source4/pidl/tests/samba3-cli.pl | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/source4/pidl/tests/samba3-cli.pl b/source4/pidl/tests/samba3-cli.pl index f5b51b7d34..80725d28cf 100755 --- a/source4/pidl/tests/samba3-cli.pl +++ b/source4/pidl/tests/samba3-cli.pl @@ -4,12 +4,12 @@ use strict; use warnings; -use Test::More tests => 8; +use Test::More tests => 9; use FindBin qw($RealBin); use lib "$RealBin"; use Util; use Parse::Pidl::Util qw(MyDumper); -use Parse::Pidl::Samba3::ClientNDR qw(ParseFunction); +use Parse::Pidl::Samba3::ClientNDR qw(ParseFunction ParseOutputArgument); use Parse::Pidl::Samba4::Header qw(GenerateFunctionInEnv GenerateFunctionOutEnv); # Make sure GenerateFunctionInEnv and GenerateFunctionOutEnv work @@ -117,3 +117,12 @@ is($x->{res}, } "); + +$x = new Parse::Pidl::Samba3::ClientNDR(); + +$fn = { NAME => "bar", ELEMENTS => [ ], RETURN_TYPE => "WERROR" }; +my $e = { NAME => "foo", ORIGINAL => { FILE => "f", LINE => -1 }, + LEVELS => [ { TYPE => "ARRAY", SIZE_IS => "mysize" }, { TYPE => "DATA", DATA_TYPE => "int" } ]}; + +$x->ParseOutputArgument($fn, $e); +is($x->{res}, "memcpy(foo, r.out.foo, mysize * sizeof(*foo));\n"); |