From 71d3abbdc45ba5b5a1bcafa98949a89968dbb0fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Deschner?= Date: Mon, 2 May 2016 17:53:38 +0200 Subject: s4-torture: Fix logic errors in node and group control clusapi tests. Guenther Signed-off-by: Guenther Deschner Reviewed-by: Jeremy Allison --- source4/torture/rpc/clusapi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source4/torture/rpc') 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; } -- cgit v1.2.1