diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-10-31 16:44:42 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:43:51 +0100 |
commit | 1f87eb38fdb76d73ea1dd045d8555a662bf0c77b (patch) | |
tree | 947eb88e986543da3a81dcb86980822e001077fb /source4/pidl/tests/ndr_tagtype.pl | |
parent | 7dee06709e01118dc3b56e79b1050de9bace92a3 (diff) | |
download | samba-1f87eb38fdb76d73ea1dd045d8555a662bf0c77b.tar.gz samba-1f87eb38fdb76d73ea1dd045d8555a662bf0c77b.tar.bz2 samba-1f87eb38fdb76d73ea1dd045d8555a662bf0c77b.zip |
r25768: pidl: NT_STATUS_IS_ERR() is NOT the same as !NT_STATUS_IS_OK()
Everything but success should be handled as error in the tests.
metze
(This used to be commit cadb1cc743a19fc16e61f8246b1e8771c806caea)
Diffstat (limited to 'source4/pidl/tests/ndr_tagtype.pl')
-rwxr-xr-x | source4/pidl/tests/ndr_tagtype.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/pidl/tests/ndr_tagtype.pl b/source4/pidl/tests/ndr_tagtype.pl index 38daa02ab4..7f5c24627a 100755 --- a/source4/pidl/tests/ndr_tagtype.pl +++ b/source4/pidl/tests/ndr_tagtype.pl @@ -17,7 +17,7 @@ test_samba4_ndr('struct-notypedef', '[public] struct bla { uint8 x; }; ', DATA_BLOB result_blob; r.x = 13; - if (NT_STATUS_IS_ERR(ndr_push_STRUCT_bla(ndr, NDR_SCALARS|NDR_BUFFERS, &r))) + if (!NT_STATUS_IS_OK(ndr_push_STRUCT_bla(ndr, NDR_SCALARS|NDR_BUFFERS, &r))) return 1; result_blob = ndr_push_blob(ndr); @@ -36,7 +36,7 @@ test_samba4_ndr('struct-notypedef-used', '[public] struct bla { uint8 x; }; DATA_BLOB result_blob; fn.in.r.x = 13; - if (NT_STATUS_IS_ERR(ndr_push_myfn(ndr, NDR_IN, &fn))) + if (!NT_STATUS_IS_OK(ndr_push_myfn(ndr, NDR_IN, &fn))) return 1; result_blob = ndr_push_blob(ndr); @@ -56,7 +56,7 @@ test_samba4_ndr('struct-notypedef-embedded', 'struct bla { uint8 x; }; DATA_BLOB result_blob; st.r.x = 13; - if (NT_STATUS_IS_ERR(ndr_push_STRUCT_myst(ndr, NDR_IN, &st))) + if (!NT_STATUS_IS_OK(ndr_push_STRUCT_myst(ndr, NDR_IN, &st))) return 1; result_blob = ndr_push_blob(ndr); |