summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2016-05-02 17:53:38 +0200
committerJeremy Allison <jra@samba.org>2016-09-07 23:56:15 +0200
commit71d3abbdc45ba5b5a1bcafa98949a89968dbb0fc (patch)
tree2100d6eb5e61d5ebb367c6558133afa22c0e89f7 /source4/torture/rpc
parent04d5a228c0fa6433909763b0c6cd70607f056d17 (diff)
downloadsamba-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.c8
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;
}