summaryrefslogtreecommitdiff
path: root/pidl/tests
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-09-13 01:58:11 +0200
committerJelmer Vernooij <jelmer@samba.org>2009-09-13 02:01:37 +0200
commit4b5ca12f2c996321e741da68aed934dc4a3cdd35 (patch)
tree6ba3a637432330006b0d4521e1628bf3b9144ccb /pidl/tests
parentac72076ef924c986a1488a93a5c87b08f34b2569 (diff)
downloadsamba-4b5ca12f2c996321e741da68aed934dc4a3cdd35.tar.gz
samba-4b5ca12f2c996321e741da68aed934dc4a3cdd35.tar.bz2
samba-4b5ca12f2c996321e741da68aed934dc4a3cdd35.zip
Fix string-wchar-fixed-array-01 test (when libndr is available).
Diffstat (limited to 'pidl/tests')
-rwxr-xr-xpidl/tests/ndr_string.pl8
1 files changed, 4 insertions, 4 deletions
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;
');