From 4b5ca12f2c996321e741da68aed934dc4a3cdd35 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 13 Sep 2009 01:58:11 +0200 Subject: Fix string-wchar-fixed-array-01 test (when libndr is available). --- pidl/tests/ndr_string.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pidl/tests/ndr_string.pl') diff --git a/pidl/tests/ndr_string.pl b/pidl/tests/ndr_string.pl index faecbbf4c5..b28ba7083c 100755 --- a/pidl/tests/ndr_string.pl +++ b/pidl/tests/ndr_string.pl @@ -70,7 +70,7 @@ test_samba4_ndr("string-wchar-fixed-array-01", 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, \'f\', 0x00, \'o\', 0x00, - \'o\', 0x00, 0x00, 0x00 + \'o\', 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 }; DATA_BLOB b = { data, sizeof(data) }; @@ -86,16 +86,16 @@ test_samba4_ndr("string-wchar-fixed-array-01", if (r.in.str == NULL) return 2; - if (r.in.str.l1 == 0x00000001) + if (r.in.str->l1 != 0x00000001) return 3; if (strncmp(str.str, "foo", 3) != 0) return 4; - if (r.in.str.str[4] != 0) + if (r.in.str->str[4] != 0) return 5; - if (r.in.str.l3 == 0x00000002) + if (r.in.str->l2 != 0x00000002) return 6; '); -- cgit From 27f54a77a698c4994a209fd0b8fa89d5617a7bdd Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 13 Sep 2009 01:59:16 +0200 Subject: Fix string-wchar-fixed-array-02 test (when libndr is available). --- pidl/tests/ndr_string.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pidl/tests/ndr_string.pl') diff --git a/pidl/tests/ndr_string.pl b/pidl/tests/ndr_string.pl index b28ba7083c..f4a5c53af9 100755 --- a/pidl/tests/ndr_string.pl +++ b/pidl/tests/ndr_string.pl @@ -114,9 +114,9 @@ test_samba4_ndr("string-wchar-fixed-array-02", 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, \'f\', 0x00, \'o\', 0x00, - \'o\', 0x00, \'b\', 0x00 + \'o\', 0x00, \'b\', 0x00, \'a\', 0x00, \'r\', 0x00, - 0x00, 0x00, 0x00, 0x00 + 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 }; DATA_BLOB b = { data, sizeof(data) }; -- cgit From fac9c35f99299497cfaad907c84830e7c57c013b Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 13 Sep 2009 01:59:48 +0200 Subject: Fix string-wchar-fixed-array-03 test (when libndr is available). --- pidl/tests/ndr_string.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pidl/tests/ndr_string.pl') diff --git a/pidl/tests/ndr_string.pl b/pidl/tests/ndr_string.pl index f4a5c53af9..7b76c7b295 100755 --- a/pidl/tests/ndr_string.pl +++ b/pidl/tests/ndr_string.pl @@ -146,9 +146,9 @@ test_samba4_ndr("string-wchar-fixed-array-03", 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, \'f\', 0x00, \'o\', 0x00, - \'o\', 0x00, \'b\', 0x00 + \'o\', 0x00, \'b\', 0x00, \'a\', 0x00, \'r\', 0x00, - 0x00, 0x00, 0x00, 0x00 + 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 }; DATA_BLOB b = { data, sizeof(data) }; -- cgit