summaryrefslogtreecommitdiff
path: root/source4/pidl/tests
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-09-15 23:03:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:06:47 -0500
commit2e3768843ae8a202e0a3a60224f6717fc34499ab (patch)
tree0f7ec9a44d6ff12e6f058c6959f0bbe879236959 /source4/pidl/tests
parentae9c015c570d4a34cb8023aef4164437f5ae7131 (diff)
downloadsamba-2e3768843ae8a202e0a3a60224f6717fc34499ab.tar.gz
samba-2e3768843ae8a202e0a3a60224f6717fc34499ab.tar.bz2
samba-2e3768843ae8a202e0a3a60224f6717fc34499ab.zip
r25185: Check that can_contain_deferred returns true if one of the members of a type can contain deferred data.
(This used to be commit 9e804e0c21f09b699707bb88d534bde55d265087)
Diffstat (limited to 'source4/pidl/tests')
-rwxr-xr-xsource4/pidl/tests/ndr.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/pidl/tests/ndr.pl b/source4/pidl/tests/ndr.pl
index 6e91ad2a6a..1512f19d52 100755
--- a/source4/pidl/tests/ndr.pl
+++ b/source4/pidl/tests/ndr.pl
@@ -4,7 +4,7 @@
use strict;
use warnings;
-use Test::More tests => 33;
+use Test::More tests => 34;
use FindBin qw($RealBin);
use lib "$RealBin";
use Util;
@@ -266,3 +266,5 @@ ok(not can_contain_deferred({ TYPE => "STRUCT",
ok(not can_contain_deferred({ TYPE => "TYPEDEF",
DATA => { TYPE => "STRUCT",
ELEMENTS => [ { TYPE => "uint32" } ]}}));
+ok(can_contain_deferred({ TYPE => "STRUCT",
+ ELEMENTS => [ { TYPE => "someunknowntype" } ]}));