From ab037664d8fe40695bff38284725b623d388a35c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 21 Oct 2006 09:38:16 +0000 Subject: r19439: revert my change to a torture assert - expected is a bool (This used to be commit 1d231e45bd898c2d01328aea94f8cbc2886c9e5b) --- source4/torture/nbt/winsreplication.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/torture/nbt/winsreplication.c') diff --git a/source4/torture/nbt/winsreplication.c b/source4/torture/nbt/winsreplication.c index 1df8a3e6b6..058a430e12 100644 --- a/source4/torture/nbt/winsreplication.c +++ b/source4/torture/nbt/winsreplication.c @@ -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; -- cgit