diff options
author | James Peach <jpeach@samba.org> | 2010-08-12 12:35:53 -0700 |
---|---|---|
committer | James Peach <jpeach@samba.org> | 2010-08-17 20:19:17 -0700 |
commit | 21fe7533032168222a32bc12e2ade1169d41b763 (patch) | |
tree | 2d75158fefa04ec7a0fb624a63f9c870fe7525e4 /source4/torture | |
parent | f37793ef0aa31eec9a6e619b55fa07c3025fcac6 (diff) | |
download | samba-21fe7533032168222a32bc12e2ade1169d41b763.tar.gz samba-21fe7533032168222a32bc12e2ade1169d41b763.tar.bz2 samba-21fe7533032168222a32bc12e2ade1169d41b763.zip |
smbtorture: Ensure that the RPC setup returns correct status.
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/rpc/rpc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/torture/rpc/rpc.c b/source4/torture/rpc/rpc.c index c652ec607c..caec56fe3c 100644 --- a/source4/torture/rpc/rpc.c +++ b/source4/torture/rpc/rpc.c @@ -151,7 +151,7 @@ static bool torture_rpc_setup_machine_workstation(struct torture_context *tctx, torture_assert_ntstatus_ok(tctx, status, "Error connecting to server"); - return true; + return NT_STATUS_IS_OK(status); } static bool torture_rpc_setup_machine_bdc(struct torture_context *tctx, @@ -183,7 +183,7 @@ static bool torture_rpc_setup_machine_bdc(struct torture_context *tctx, torture_assert_ntstatus_ok(tctx, status, "Error connecting to server"); - return true; + return NT_STATUS_IS_OK(status); } _PUBLIC_ struct torture_rpc_tcase *torture_suite_add_machine_workstation_rpc_iface_tcase( @@ -259,7 +259,7 @@ static bool torture_rpc_setup_anonymous(struct torture_context *tctx, torture_assert_ntstatus_ok(tctx, status, "Error connecting to server"); - return true; + return NT_STATUS_IS_OK(status); } static bool torture_rpc_setup (struct torture_context *tctx, void **data) @@ -278,7 +278,7 @@ static bool torture_rpc_setup (struct torture_context *tctx, void **data) torture_assert_ntstatus_ok(tctx, status, "Error connecting to server"); - return true; + return NT_STATUS_IS_OK(status); } |