From: Jelmer Vernooij Date: Sat, 12 Sep 2009 23:58:11 +0000 (+0200) Subject: Fix string-wchar-fixed-array-01 test (when libndr is available). X-Git-Tag: talloc-2.0.1~519^2~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b5ca12f2c996321e741da68aed934dc4a3cdd35;p=thirdparty%2Fsamba.git Fix string-wchar-fixed-array-01 test (when libndr is available). --- diff --git a/pidl/tests/ndr_string.pl b/pidl/tests/ndr_string.pl index faecbbf4c5f..b28ba7083ce 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; ');