1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

r19439: revert my change to a torture assert - expected is a bool

(This used to be commit 1d231e45bd898c2d01328aea94f8cbc2886c9e5b)
This commit is contained in:
Andrew Tridgell 2006-10-21 09:38:16 +00:00 committed by Gerald (Jerry) Carter
parent 5a4b133d1c
commit ab037664d8

View File

@ -790,7 +790,7 @@ static bool test_wrepl_is_applied(struct torture_context *tctx,
status = wrepl_pull_names(ctx->pull, ctx->pull, &pull_names);
CHECK_STATUS(tctx, status, NT_STATUS_OK);
torture_assert(tctx, pull_names.out.num_names == expected,
torture_assert(tctx, pull_names.out.num_names == (expected?1:0),
talloc_asprintf(tctx, "Invalid number of records returned - expected %d got %d", expected, pull_names.out.num_names));
names = pull_names.out.names;