r19439: revert my change to a torture assert - expected is a bool
authorAndrew Tridgell <tridge@samba.org>
Sat, 21 Oct 2006 09:38:16 +0000 (09:38 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:21:32 +0000 (14:21 -0500)
(This used to be commit 1d231e45bd898c2d01328aea94f8cbc2886c9e5b)

source4/torture/nbt/winsreplication.c

index 1df8a3e6b660ace551ee9a262d999a611d59f2cf..058a430e120ee9df97cb0883dc0df3ca09469449 100644 (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;