1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

s4-torture: fix asserts in clusapi_NodeControl tests

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Günther Deschner 2020-01-13 18:30:14 +01:00 committed by Jeremy Allison
parent efe353edf4
commit 21157c66ab

View File

@ -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),