From 311d6f47c85282925932b3a7326e66679be9451f Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 23 Mar 2006 21:47:16 +0000 Subject: r14686: Fix pidl testsuite to run whenever there is a shared libary built Samba present. Ignore tests that are known to fail for now. (This used to be commit a7279f13f0431a5036c931c5339542f98139c461) --- source4/pidl/lib/Parse/Pidl/NDR.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source4/pidl/lib/Parse/Pidl/NDR.pm') diff --git a/source4/pidl/lib/Parse/Pidl/NDR.pm b/source4/pidl/lib/Parse/Pidl/NDR.pm index b1aec5cc5d..a709abba10 100644 --- a/source4/pidl/lib/Parse/Pidl/NDR.pm +++ b/source4/pidl/lib/Parse/Pidl/NDR.pm @@ -317,8 +317,10 @@ sub find_largest_alignment($) if ($e->{POINTERS}) { $a = 4; - } elsif (has_property($e, "subcontext")){ + } elsif (has_property($e, "subcontext")) { $a = 1; + } elsif (has_property($e, "represent_as")) { + $a = align_type($e->{PROPERTIES}->{represent_as}); } else { $a = align_type($e->{TYPE}); } @@ -793,6 +795,8 @@ my %property_list = ( "case" => ["ELEMENT"], "default" => ["ELEMENT"], + "represent_as" => ["ELEMENT"], + # subcontext "subcontext" => ["ELEMENT"], "subcontext_size" => ["ELEMENT"], -- cgit