diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-03-24 11:45:40 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:59:09 -0500 |
commit | 6ba19b57290d7a625e0939563160eec0c419a91a (patch) | |
tree | 0033726336353787cc2f914e7c3c1c3a5c0bf25d /source4 | |
parent | 85e91438b119f91cc0eb7da0992fadd5d2e47332 (diff) | |
download | samba-6ba19b57290d7a625e0939563160eec0c419a91a.tar.gz samba-6ba19b57290d7a625e0939563160eec0c419a91a.tar.xz samba-6ba19b57290d7a625e0939563160eec0c419a91a.zip |
r14689: Fix test
(This used to be commit b199f5345cc92ff8aeb59479c8c2a89ab1278d70)
Diffstat (limited to 'source4')
-rwxr-xr-x | source4/pidl/tests/ndr_align.pl | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/source4/pidl/tests/ndr_align.pl b/source4/pidl/tests/ndr_align.pl index 55a86861ca..c05f6383ed 100755 --- a/source4/pidl/tests/ndr_align.pl +++ b/source4/pidl/tests/ndr_align.pl @@ -113,26 +113,24 @@ test_samba4_ndr('noalignflag-uint8-uint16', return 2; '); -SKIP: { - -skip "align-blob-align2 is known to fail", 8; - test_samba4_ndr('align-blob-align2', ' typedef [public] struct { uint8 x; [flag(LIBNDR_FLAG_ALIGN2)] DATA_BLOB data; + uint8 y; } bla; ', ' struct ndr_push *ndr = ndr_push_init(); struct bla r; uint8_t data[] = { 0x01, 0x02 }; - uint8_t expected[] = { 0x0D, 0x00, 0x01, 0x02 }; - DATA_BLOB expected_blob = { expected, 4 }; + uint8_t expected[] = { 0x0D, 0x00, 0x0E }; + DATA_BLOB expected_blob = { expected, 3 }; DATA_BLOB result_blob; r.x = 13; + r.y = 14; r.data.data = data; r.data.length = 2; @@ -141,9 +139,6 @@ test_samba4_ndr('align-blob-align2', result_blob = ndr_push_blob(ndr); - printf("%02x%02x%02x%02x\n", result_blob.data[0], result_blob.data[1], result_blob.data[2], result_blob.data[3]); - if (!data_blob_equal(&result_blob, &expected_blob)) return 2; '); -} |