diff options
author | Andrew Bartlett <abartlet@samba.org> | 2007-07-03 07:28:46 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:58:58 -0500 |
commit | 74b35321dc043188386d0305508b5276a5290d0d (patch) | |
tree | 4d17595654ae150b35b1cee1ff07d531aa2e04e1 /source4/pidl | |
parent | 1e1a60aa7b837b543fe75c0caf00e2eeb0f0a12d (diff) | |
download | samba-74b35321dc043188386d0305508b5276a5290d0d.tar.gz samba-74b35321dc043188386d0305508b5276a5290d0d.tar.bz2 samba-74b35321dc043188386d0305508b5276a5290d0d.zip |
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 used to be commit d2fba8faf03c18f4c79e83d5847e5420377d811b)
Diffstat (limited to 'source4/pidl')
-rwxr-xr-x | source4/pidl/tests/ndr_align.pl | 10 | ||||
-rwxr-xr-x | source4/pidl/tests/ndr_tagtype.pl | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/source4/pidl/tests/ndr_align.pl b/source4/pidl/tests/ndr_align.pl index 405b74597c..0824acc501 100755 --- a/source4/pidl/tests/ndr_align.pl +++ b/source4/pidl/tests/ndr_align.pl @@ -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; '); diff --git a/source4/pidl/tests/ndr_tagtype.pl b/source4/pidl/tests/ndr_tagtype.pl index d7839426d5..f8250a90ef 100755 --- a/source4/pidl/tests/ndr_tagtype.pl +++ b/source4/pidl/tests/ndr_tagtype.pl @@ -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; '); |