mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r23677: When I removed data_blob_equal, I clearly didn't test the PIDL code.
Fix these to use the new data_blob_cmp() Andrew Bartlett
This commit is contained in:
parent
9987d30957
commit
d2fba8faf0
@ -29,7 +29,7 @@ test_samba4_ndr('align-uint8-uint16',
|
||||
|
||||
result_blob = ndr_push_blob(ndr);
|
||||
|
||||
if (!data_blob_equal(&result_blob, &expected_blob))
|
||||
if (data_blob_cmp(&result_blob, &expected_blob) != 0)
|
||||
return 2;
|
||||
');
|
||||
|
||||
@ -54,7 +54,7 @@ test_samba4_ndr('align-uint8-uint32',
|
||||
|
||||
result_blob = ndr_push_blob(ndr);
|
||||
|
||||
if (!data_blob_equal(&result_blob, &expected_blob))
|
||||
if (data_blob_cmp(&result_blob, &expected_blob) != 0)
|
||||
return 2;
|
||||
');
|
||||
|
||||
@ -81,7 +81,7 @@ test_samba4_ndr('align-uint8-hyper',
|
||||
|
||||
result_blob = ndr_push_blob(ndr);
|
||||
|
||||
if (!data_blob_equal(&result_blob, &expected_blob))
|
||||
if (data_blob_cmp(&result_blob, &expected_blob) != 0)
|
||||
return 2;
|
||||
');
|
||||
|
||||
@ -108,7 +108,7 @@ test_samba4_ndr('noalignflag-uint8-uint16',
|
||||
|
||||
result_blob = ndr_push_blob(ndr);
|
||||
|
||||
if (!data_blob_equal(&result_blob, &expected_blob))
|
||||
if (data_blob_cmp(&result_blob, &expected_blob) != 0)
|
||||
return 2;
|
||||
');
|
||||
|
||||
@ -138,6 +138,6 @@ test_samba4_ndr('align-blob-align2',
|
||||
|
||||
result_blob = ndr_push_blob(ndr);
|
||||
|
||||
if (!data_blob_equal(&result_blob, &expected_blob))
|
||||
if (data_blob_cmp(&result_blob, &expected_blob) != 0)
|
||||
return 2;
|
||||
');
|
||||
|
@ -22,7 +22,7 @@ test_samba4_ndr('struct-notypedef', '[public] struct bla { uint8 x; }; ',
|
||||
|
||||
result_blob = ndr_push_blob(ndr);
|
||||
|
||||
if (!data_blob_equal(&result_blob, &expected_blob))
|
||||
if (data_blob_cmp(&result_blob, &expected_blob) != 0)
|
||||
return 2;
|
||||
');
|
||||
|
||||
@ -41,7 +41,7 @@ test_samba4_ndr('struct-notypedef-used', '[public] struct bla { uint8 x; };
|
||||
|
||||
result_blob = ndr_push_blob(ndr);
|
||||
|
||||
if (!data_blob_equal(&result_blob, &expected_blob))
|
||||
if (data_blob_cmp(&result_blob, &expected_blob) != 0)
|
||||
return 2;
|
||||
');
|
||||
|
||||
@ -61,6 +61,6 @@ test_samba4_ndr('struct-notypedef-embedded', 'struct bla { uint8 x; };
|
||||
|
||||
result_blob = ndr_push_blob(ndr);
|
||||
|
||||
if (!data_blob_equal(&result_blob, &expected_blob))
|
||||
if (data_blob_cmp(&result_blob, &expected_blob) != 0)
|
||||
return 2;
|
||||
');
|
||||
|
Loading…
Reference in New Issue
Block a user