r14689: Fix test
authorJelmer Vernooij <jelmer@samba.org>
Fri, 24 Mar 2006 11:45:40 +0000 (11:45 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:59:09 +0000 (13:59 -0500)
(This used to be commit b199f5345cc92ff8aeb59479c8c2a89ab1278d70)

source4/pidl/tests/ndr_align.pl

index 55a86861ca1c2ab19f463ae88e44e640b5e55c25..c05f6383ede207f2b7d350a5aac264f26f4fb49d 100755 (executable)
@@ -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;
 ');
-}