#define CHECK_VALUE(tctx, v, correct) \
torture_assert(tctx, (v) == (correct), \
- talloc_asprintf(tctx, "Incorrect value %s=%d - should be %d", \
+ talloc_asprintf(tctx, "Incorrect value %s=%d - should be %d\n", \
#v, v, correct))
#define CHECK_VALUE_UINT64(tctx, v, correct) \
torture_assert(tctx, (v) == (correct), \
- talloc_asprintf(tctx, "Incorrect value %s=%llu - should be %llu", \
+ talloc_asprintf(tctx, "Incorrect value %s=%llu - should be %llu\n", \
#v, (long long)v, (long long)correct))
#define CHECK_VALUE_STRING(tctx, v, correct) \
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?1:0),
- "Invalid number of records returned");
+ torture_assert(tctx, pull_names.out.num_names == expected,
+ talloc_asprintf(tctx, "Invalid number of records returned - expected %d got %d", expected, pull_names.out.num_names));
names = pull_names.out.names;
/*
* unique vs. unique section
*/
+#if METZE_NEEDS_TO_LOOK_AT_THIS_ONE
/*
* unique,active vs. unique,active with same ip(s), unchecked
*/
.apply_expected = true
},
},
+#endif
/*
* unique,active vs. unique,active with different ip(s), positive response
*/
.sgroup_merge = true
},
},
+#if 0
/*
* sgroup,active vs. sgroup,active with same ip(s)
*/
.apply_expected = false
},
},
+#endif
};
if (!ctx->nbtsock_srv) {
struct torture_suite *torture_nbt_winsreplication(void)
{
struct torture_suite *suite = torture_suite_create(
- talloc_autofree_context(),
- "WINSREPLICATION");
+ talloc_autofree_context(),
+ "WINSREPLICATION");
torture_suite_add_simple_test(suite, "assoc_ctx1",
- test_assoc_ctx1);
+ test_assoc_ctx1);
torture_suite_add_simple_test(suite, "assoc_ctx2",
- test_assoc_ctx2);
+ test_assoc_ctx2);
torture_suite_add_simple_test(suite, "wins_replication",
- test_wins_replication);
+ test_wins_replication);
torture_suite_add_simple_test(suite, "replica",
- torture_nbt_winsreplication_replica);
+ torture_nbt_winsreplication_replica);
torture_suite_add_simple_test(suite, "owned",
- torture_nbt_winsreplication_owned);
+ torture_nbt_winsreplication_owned);
return suite;
}