diff options
author | Günther Deschner <gd@samba.org> | 2015-05-13 10:47:37 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2015-07-03 02:00:27 +0200 |
commit | 6e9c678c8b4281bf93f14dc881e0f36b41e30c3b (patch) | |
tree | 91102d4e705af9aa77f0e3352055ab67ad36ef3b /source4/torture/rpc/witness.c | |
parent | 9cdb69c8ddc99dc38046a64e0bd36216773600ff (diff) | |
download | samba-6e9c678c8b4281bf93f14dc881e0f36b41e30c3b.tar.gz |
s4-torture: make setup of the clusapi pipe non-critical in witness test.
Samba currently does not implement clusapi.
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/torture/rpc/witness.c')
-rw-r--r-- | source4/torture/rpc/witness.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source4/torture/rpc/witness.c b/source4/torture/rpc/witness.c index 3064dbd5975..4c01c58a2b2 100644 --- a/source4/torture/rpc/witness.c +++ b/source4/torture/rpc/witness.c @@ -515,13 +515,17 @@ static bool test_witness_RegisterEx(struct torture_context *tctx, static bool setup_clusapi_connection(struct torture_context *tctx, struct torture_test_witness_state *s) { + NTSTATUS status; + if (s->clusapi.p) { return true; } - torture_assert_ntstatus_ok(tctx, - torture_rpc_connection_transport(tctx, &s->clusapi.p, &ndr_table_clusapi, NCACN_IP_TCP, 0), - "failed to connect to clusapi"); + status = torture_rpc_connection_transport(tctx, &s->clusapi.p, &ndr_table_clusapi, NCACN_IP_TCP, 0); + if (!NT_STATUS_IS_OK(status)) { + torture_comment(tctx, "clusapi interface not available\n"); + return true; + } return true; } |