summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2020-01-13 18:30:14 +0100
committerJeremy Allison <jra@samba.org>2020-01-16 20:09:42 +0000
commit21157c66abb349c97d02a1a104a6e1cfcb577542 (patch)
treef4da2011e1fcf686a09abef9704a2ca3e6ebe255 /source4
parentefe353edf486ee2ab351735a8f927fe607046bb1 (diff)
downloadsamba-21157c66abb349c97d02a1a104a6e1cfcb577542.tar.gz
s4-torture: fix asserts in clusapi_NodeControl tests
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/rpc/clusapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/rpc/clusapi.c b/source4/torture/rpc/clusapi.c
index 46950aff4e1..995a8bdd438 100644
--- a/source4/torture/rpc/clusapi.c
+++ b/source4/torture/rpc/clusapi.c
@@ -1660,8 +1660,8 @@ static bool test_NodeControl_int(struct torture_context *tctx,
const char *str;
DATA_BLOB blob = data_blob_const(r.out.lpOutBuffer, *r.out.lpBytesReturned);
- torture_assert(tctx, *r.out.lpBytesReturned < 4, "unexpected size");
- torture_assert(tctx, *r.out.lpBytesReturned % 2, "must be a multiple of 2");
+ torture_assert(tctx, *r.out.lpBytesReturned >= 4, "must be at least 4 bytes long");
+ torture_assert(tctx, (*r.out.lpBytesReturned % 2) == 0, "must be a multiple of 2");
torture_assert(tctx,
pull_reg_sz(tctx, &blob, &str),