diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-04-06 19:16:43 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-04-06 19:16:43 +1000 |
commit | 5454dc044da9e3c91fca6e55659a6d6a44179b4f (patch) | |
tree | db992a4a271b36032efd60cb7bb5cdc4b365fd62 /source4/pidl/tests/samba-ndr.pl | |
parent | 4c449fe95f20676553b04a6028310191b4a2a32a (diff) | |
parent | c30f9add8cc5b060b73381f53671ecd01c31cdd8 (diff) | |
download | samba-5454dc044da9e3c91fca6e55659a6d6a44179b4f.tar.gz samba-5454dc044da9e3c91fca6e55659a6d6a44179b4f.tar.bz2 samba-5454dc044da9e3c91fca6e55659a6d6a44179b4f.zip |
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
(This used to be commit beff331e15e7896d80831135fd52b90cd9ab073e)
Diffstat (limited to 'source4/pidl/tests/samba-ndr.pl')
-rwxr-xr-x | source4/pidl/tests/samba-ndr.pl | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/source4/pidl/tests/samba-ndr.pl b/source4/pidl/tests/samba-ndr.pl index a14111961f..114ca01cfa 100755 --- a/source4/pidl/tests/samba-ndr.pl +++ b/source4/pidl/tests/samba-ndr.pl @@ -4,7 +4,7 @@ use strict; use warnings; -use Test::More tests => 30; +use Test::More tests => 31; use FindBin qw($RealBin); use lib "$RealBin"; use Util; @@ -277,3 +277,17 @@ $generator->ParseElementPrint({ NAME => "x", TYPE => "uint32", REPRESENTATION_TY PROPERTIES => { value => "23" }, LEVELS => [ { TYPE => "DATA", DATA_TYPE => "uint32"} ]}, "var", { "x" => "r->foobar" } ); is($generator->{res}, "ndr_print_uint32(ndr, \"x\", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?23:var);\n"); + +$generator = new Parse::Pidl::Samba4::NDR::Parser(); +$generator->AuthServiceStruct("bridge", "\"rot13\",\"onetimepad\""); +is($generator->{res}, "static const char * const bridge_authservice_strings[] = { + \"rot13\", + \"onetimepad\", +}; + +static const struct ndr_interface_string_array bridge_authservices = { + .count = 2, + .names = bridge_authservice_strings +}; + +"); |