diff options
author | Günther Deschner <gd@samba.org> | 2016-05-02 17:53:38 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2016-09-07 23:56:15 +0200 |
commit | 71d3abbdc45ba5b5a1bcafa98949a89968dbb0fc (patch) | |
tree | 2100d6eb5e61d5ebb367c6558133afa22c0e89f7 /source4/torture/rpc | |
parent | 04d5a228c0fa6433909763b0c6cd70607f056d17 (diff) | |
download | samba-71d3abbdc45ba5b5a1bcafa98949a89968dbb0fc.tar.gz |
s4-torture: Fix logic errors in node and group control clusapi tests.
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r-- | source4/torture/rpc/clusapi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/torture/rpc/clusapi.c b/source4/torture/rpc/clusapi.c index 986f263065a..7b7e06aa071 100644 --- a/source4/torture/rpc/clusapi.c +++ b/source4/torture/rpc/clusapi.c @@ -1522,12 +1522,12 @@ static bool test_NodeControl(struct torture_context *tctx, } ret = test_NodeControl_int(tctx, t->p, &hNode, CLUSCTL_NODE_GET_RO_COMMON_PROPERTIES); - if (ret) { + if (!ret) { return false; } ret = test_NodeControl_int(tctx, t->p, &hNode, CLUSCTL_NODE_GET_ID); - if (ret) { + if (!ret) { return false; } @@ -2006,12 +2006,12 @@ static bool test_GroupControl(struct torture_context *tctx, } ret = test_GroupControl_int(tctx, t->p, &hGroup, CLUSCTL_GROUP_GET_CHARACTERISTICS); - if (ret) { + if (!ret) { return false; } ret = test_GroupControl_int(tctx, t->p, &hGroup, CLUSCTL_GROUP_GET_RO_COMMON_PROPERTIES); - if (ret) { + if (!ret) { return false; } |