summaryrefslogtreecommitdiff
path: root/pidl/tests/ndr_string.pl
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-09-14 13:24:07 -0700
committerAndrew Tridgell <tridge@samba.org>2009-09-14 13:24:07 -0700
commit5464ce6df678a6ce3022f4a30fd9553996cefb69 (patch)
tree86982aa8eda44b0de296f46171fdebb9a4be8597 /pidl/tests/ndr_string.pl
parent72fcc6344f1ddfece4dd41790fc1add9c6d2c0f7 (diff)
parent3dd404abad878fa7e760ba50ce84fc80b82ea159 (diff)
downloadsamba-5464ce6df678a6ce3022f4a30fd9553996cefb69.tar.gz
samba-5464ce6df678a6ce3022f4a30fd9553996cefb69.tar.bz2
samba-5464ce6df678a6ce3022f4a30fd9553996cefb69.zip
Merge branch 'master' of /home/tridge/samba/git/combined
Diffstat (limited to 'pidl/tests/ndr_string.pl')
-rwxr-xr-xpidl/tests/ndr_string.pl16
1 files changed, 8 insertions, 8 deletions
diff --git a/pidl/tests/ndr_string.pl b/pidl/tests/ndr_string.pl
index faecbbf4c5..7b76c7b295 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;
');
@@ -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) };
@@ -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) };