svn commit: samba r14689 - in branches/SAMBA_4_0/source/pidl/tests:
.
jelmer at samba.org
jelmer at samba.org
Fri Mar 24 11:45:40 GMT 2006
Author: jelmer
Date: 2006-03-24 11:45:40 +0000 (Fri, 24 Mar 2006)
New Revision: 14689
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14689
Log:
Fix test
Modified:
branches/SAMBA_4_0/source/pidl/tests/ndr_align.pl
Changeset:
Modified: branches/SAMBA_4_0/source/pidl/tests/ndr_align.pl
===================================================================
--- branches/SAMBA_4_0/source/pidl/tests/ndr_align.pl 2006-03-24 11:42:03 UTC (rev 14688)
+++ branches/SAMBA_4_0/source/pidl/tests/ndr_align.pl 2006-03-24 11:45:40 UTC (rev 14689)
@@ -113,26 +113,24 @@
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 @@
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;
');
-}
More information about the samba-cvs
mailing list