summaryrefslogtreecommitdiff
path: root/pidl
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-10-02 17:14:15 +1000
committerAndrew Tridgell <tridge@samba.org>2009-10-02 17:14:15 +1000
commit084407fe2072a66ec753aa4dcceaa5a9622fce9e (patch)
treec79ab3bedb2484d07de0bec69a282ebd13ef7b5f /pidl
parenta01713d3dc72a247a8b02360d28e7a98df112bad (diff)
downloadsamba-084407fe2072a66ec753aa4dcceaa5a9622fce9e.tar.gz
samba-084407fe2072a66ec753aa4dcceaa5a9622fce9e.tar.bz2
samba-084407fe2072a66ec753aa4dcceaa5a9622fce9e.zip
pidl: fixed unit tests for trailer alignment
Diffstat (limited to 'pidl')
-rwxr-xr-xpidl/tests/samba-ndr.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/pidl/tests/samba-ndr.pl b/pidl/tests/samba-ndr.pl
index 5c9c6afd85..e257817809 100755
--- a/pidl/tests/samba-ndr.pl
+++ b/pidl/tests/samba-ndr.pl
@@ -223,6 +223,7 @@ $generator->ParseStructPush({
ELEMENTS => [ ]}, "ndr", "x");
is($generator->{res}, "if (ndr_flags & NDR_SCALARS) {
NDR_CHECK(ndr_push_align(ndr, 4));
+ NDR_CHECK(ndr_push_trailer_align(ndr, 4));
}
if (ndr_flags & NDR_BUFFERS) {
}
@@ -248,6 +249,7 @@ is($generator->{res}, "if (ndr_flags & NDR_SCALARS) {
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_string_array_size(ndr, x->el1)));
NDR_CHECK(ndr_push_align(ndr, 4));
NDR_CHECK(ndr_push_mytype(ndr, NDR_SCALARS, &x->el1));
+ NDR_CHECK(ndr_push_trailer_align(ndr, 4));
}
if (ndr_flags & NDR_BUFFERS) {
}