summaryrefslogtreecommitdiff
path: root/source4/torture/ndr
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-03-25 11:02:33 +0100
committerGünther Deschner <gd@samba.org>2010-03-25 11:04:52 +0100
commit45f6eae4c43f47b4ac766183aafe9a7139c257a0 (patch)
tree9971aa2c9977425493084e278f0b3b568d964c9e /source4/torture/ndr
parentfa1245f01c73055160173c6a62e29b3368f38db1 (diff)
downloadsamba-45f6eae4c43f47b4ac766183aafe9a7139c257a0.tar.gz
samba-45f6eae4c43f47b4ac766183aafe9a7139c257a0.tar.bz2
samba-45f6eae4c43f47b4ac766183aafe9a7139c257a0.zip
s4-smbtorture: fix drsblobs ndr torture test.
Guenther
Diffstat (limited to 'source4/torture/ndr')
-rw-r--r--source4/torture/ndr/drsblobs.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source4/torture/ndr/drsblobs.c b/source4/torture/ndr/drsblobs.c
index 2b3e0a8a88..77cbe5f80f 100644
--- a/source4/torture/ndr/drsblobs.c
+++ b/source4/torture/ndr/drsblobs.c
@@ -43,15 +43,18 @@ static bool forest_trust_info_check_out(struct torture_context *tctx,
torture_assert_int_equal(tctx, r->records[0].record.flags, 0, "record flags");
torture_assert_u64_equal(tctx, r->records[0].record.timestamp, 0x9BD5AF0001CACA3E, "record timestamp");
torture_assert_int_equal(tctx, r->records[0].record.type, FOREST_TRUST_TOP_LEVEL_NAME, "record type");
- torture_assert_str_equal(tctx, r->records[0].record.data.name, "f2.test", "record name");
+ torture_assert_int_equal(tctx, r->records[0].record.data.name.size, 7, "record name size");
+ torture_assert_str_equal(tctx, r->records[0].record.data.name.string, "f2.test", "record name string");
torture_assert_int_equal(tctx, r->records[1].record_size, 0x0000003a, "record size");
torture_assert_int_equal(tctx, r->records[1].record.flags, 0, "record flags");
torture_assert_u64_equal(tctx, r->records[1].record.timestamp, 0x9BD5AF0001CACA3E, "record timestamp");
torture_assert_int_equal(tctx, r->records[1].record.type, FOREST_TRUST_DOMAIN_INFO, "record type");
torture_assert_int_equal(tctx, r->records[1].record.data.info.sid_size, 0x00000018, "record info sid_size");
torture_assert_sid_equal(tctx, &r->records[1].record.data.info.sid, dom_sid_parse_talloc(tctx, "S-1-5-21-677661288-1956808876-2402106903"), "record info sid");
- torture_assert_str_equal(tctx, r->records[1].record.data.info.dns_name, "f2.test", "record info dns_name");
- torture_assert_str_equal(tctx, r->records[1].record.data.info.netbios_name, "F2", "record info netbios_name");
+ torture_assert_int_equal(tctx, r->records[1].record.data.info.dns_name.size, 7, "record name size");
+ torture_assert_str_equal(tctx, r->records[1].record.data.info.dns_name.string, "f2.test", "record info dns_name string");
+ torture_assert_int_equal(tctx, r->records[1].record.data.info.netbios_name.size, 2, "record info netbios_name size");
+ torture_assert_str_equal(tctx, r->records[1].record.data.info.netbios_name.string, "F2", "record info netbios_name string");
return true;
}