From 2e3768843ae8a202e0a3a60224f6717fc34499ab Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 15 Sep 2007 23:03:34 +0000 Subject: 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) --- source4/pidl/tests/ndr.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source4/pidl/tests/ndr.pl') 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" } ]})); -- cgit