diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-08-16 13:41:48 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:02:00 -0500 |
commit | b76b6a15225329941c20070d05356aba56044173 (patch) | |
tree | 2a020c9de5b3cd8ace5e5f1181cdddc436453b0e /source4/pidl/tests/Util.pm | |
parent | 8c9abc4be738fc17691f8a36827d50bb5dd3bbb6 (diff) | |
download | samba-b76b6a15225329941c20070d05356aba56044173.tar.gz samba-b76b6a15225329941c20070d05356aba56044173.tar.bz2 samba-b76b6a15225329941c20070d05356aba56044173.zip |
r24492: Parse::Pidl::Samba4::Header::Parse() now takes an $ndr tree
not the $pidl tree anymore.
metze
(This used to be commit 3cbbddb94c9e986d0adbe3b001146b209cd810d9)
Diffstat (limited to 'source4/pidl/tests/Util.pm')
-rw-r--r-- | source4/pidl/tests/Util.pm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source4/pidl/tests/Util.pm b/source4/pidl/tests/Util.pm index 897e848440..dfd219186f 100644 --- a/source4/pidl/tests/Util.pm +++ b/source4/pidl/tests/Util.pm @@ -48,12 +48,14 @@ sub test_samba4_ndr { my ($name,$idl,$c,$extra) = @_; my $pidl = Parse::Pidl::IDL::parse_string("interface echo { $idl }; ", "<$name>"); - ok(defined($pidl), "($name) parse idl"); - my $header = Parse::Pidl::Samba4::Header::Parse($pidl); - ok(defined($header), "($name) generate generic header"); + my $pndr = Parse::Pidl::NDR::Parse($pidl); ok(defined($pndr), "($name) generate NDR tree"); + + my $header = Parse::Pidl::Samba4::Header::Parse($pndr); + ok(defined($header), "($name) generate generic header"); + my $generator = new Parse::Pidl::Samba4::NDR::Parser(); my ($ndrheader,$ndrparser) = $generator->Parse($pndr, undef, undef); ok(defined($ndrparser), "($name) generate NDR parser"); |