From 0bb6dacc169d34c55feb1938a36b9c8936cea844 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 23 Nov 2006 20:59:09 +0000 Subject: r19868: Fix more tests. (This used to be commit 01a4fb1b22d09f38636c211a93efc4099f4766b3) --- source4/pidl/tests/Util.pm | 1 + source4/pidl/tests/ndr_align.pl | 6 +++--- source4/pidl/tests/ndr_represent.pl | 2 +- source4/pidl/tests/ndr_string.pl | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) (limited to 'source4') diff --git a/source4/pidl/tests/Util.pm b/source4/pidl/tests/Util.pm index e0d87b2dac..83651e6073 100644 --- a/source4/pidl/tests/Util.pm +++ b/source4/pidl/tests/Util.pm @@ -56,6 +56,7 @@ SKIP: { print CC "#include \n"; print CC "#include \n"; print CC "#include \n"; + print CC "#include \n"; print CC $header; print CC $ndrheader; print CC $extra if ($extra); diff --git a/source4/pidl/tests/ndr_align.pl b/source4/pidl/tests/ndr_align.pl index c05f6383ed..26f41377e7 100755 --- a/source4/pidl/tests/ndr_align.pl +++ b/source4/pidl/tests/ndr_align.pl @@ -119,11 +119,11 @@ test_samba4_ndr('align-blob-align2', uint8 x; [flag(LIBNDR_FLAG_ALIGN2)] DATA_BLOB data; uint8 y; - } bla; + } blie; ', ' struct ndr_push *ndr = ndr_push_init(); - struct bla r; + struct blie r; uint8_t data[] = { 0x01, 0x02 }; uint8_t expected[] = { 0x0D, 0x00, 0x0E }; DATA_BLOB expected_blob = { expected, 3 }; @@ -134,7 +134,7 @@ test_samba4_ndr('align-blob-align2', r.data.data = data; r.data.length = 2; - if (NT_STATUS_IS_ERR(ndr_push_bla(ndr, NDR_SCALARS|NDR_BUFFERS, &r))) + if (NT_STATUS_IS_ERR(ndr_push_blie(ndr, NDR_SCALARS|NDR_BUFFERS, &r))) return 1; result_blob = ndr_push_blob(ndr); diff --git a/source4/pidl/tests/ndr_represent.pl b/source4/pidl/tests/ndr_represent.pl index 3c6b8cf6ab..93764451cf 100644 --- a/source4/pidl/tests/ndr_represent.pl +++ b/source4/pidl/tests/ndr_represent.pl @@ -26,7 +26,7 @@ test_samba4_ndr('represent_as-simple', return 2; ', ' -#include +#include NTSTATUS ndr_uint8_to_uint32(uint8_t from, uint32_t *to) { diff --git a/source4/pidl/tests/ndr_string.pl b/source4/pidl/tests/ndr_string.pl index 00ccbb31bb..9a09261996 100755 --- a/source4/pidl/tests/ndr_string.pl +++ b/source4/pidl/tests/ndr_string.pl @@ -79,6 +79,6 @@ test_samba4_ndr("string-out", if (strncmp(r.out.data, "foo", 3) != 0) return 3; - if (r.in.data[4] != 0) + if (r.out.data[4] != 0) return 4; '); -- cgit