summaryrefslogtreecommitdiff
path: root/source4/pidl/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-03-23 21:47:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:59:08 -0500
commit311d6f47c85282925932b3a7326e66679be9451f (patch)
treef0c5dd58f4eaff4fe35a4aee4b36789dbaf59991 /source4/pidl/lib
parent41a6591628bc7dcb4751b8c2752e6d288d579276 (diff)
downloadsamba-311d6f47c85282925932b3a7326e66679be9451f.tar.gz
samba-311d6f47c85282925932b3a7326e66679be9451f.tar.bz2
samba-311d6f47c85282925932b3a7326e66679be9451f.zip
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)
Diffstat (limited to 'source4/pidl/lib')
-rw-r--r--source4/pidl/lib/Parse/Pidl/NDR.pm6
1 files changed, 5 insertions, 1 deletions
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"],