From 084407fe2072a66ec753aa4dcceaa5a9622fce9e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 2 Oct 2009 17:14:15 +1000 Subject: pidl: fixed unit tests for trailer alignment --- pidl/tests/samba-ndr.pl | 2 ++ 1 file changed, 2 insertions(+) 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) { } -- cgit