From 9903a47151a96177e835ba45450ad12a2e969ee2 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 18 Oct 2005 14:58:51 +0000 Subject: [PATCH] r11146: make sure we get the expected amount of addresses metze --- source/torture/nbt/winsreplication.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/torture/nbt/winsreplication.c b/source/torture/nbt/winsreplication.c index 3cdd84e5f14..c771fc52ee4 100644 --- a/source/torture/nbt/winsreplication.c +++ b/source/torture/nbt/winsreplication.c @@ -529,6 +529,15 @@ static BOOL test_wrepl_is_applied(struct test_wrepl_conflict_conn *ctx, CHECK_VALUE_STRING(names[0].name.scope, name->name->scope); CHECK_VALUE(flags, name->flags); CHECK_VALUE_UINT64(names[0].version_id, name->id); + + if (flags & 2) { + CHECK_VALUE(names[0].num_addresses, + name->addresses.addresses.num_ips); + } else { + CHECK_VALUE(names[0].num_addresses, 1); + CHECK_VALUE_STRING(names[0].addresses[0].address, + name->addresses.ip); + } } done: talloc_free(pull_names.out.names); -- 2.11.4.GIT