git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8efabcc
)
tdr-test: Fix 'push_charset' test
author
Kamen Mazdrashki
<kamen.mazdrashki@postpath.com>
Sun, 6 Dec 2009 01:18:11 +0000
(
03:18
+0200)
committer
Andrew Tridgell
<tridge@samba.org>
Tue, 8 Dec 2009 01:39:10 +0000
(12:39 +1100)
4 bytes of 'bloe' string are pushed, so we should
check only for the first 4 caracters
Signed-off-by: Andrew Tridgell <tridge@samba.org>
lib/tdr/testsuite.c
patch
|
blob
|
history
diff --git
a/lib/tdr/testsuite.c
b/lib/tdr/testsuite.c
index 36bb164a9a3310dff30dee0fd47e8e5edbd64e9b..ca76b5291e727493897928689530eda8e7844617 100644
(file)
--- a/
lib/tdr/testsuite.c
+++ b/
lib/tdr/testsuite.c
@@
-154,7
+154,7
@@
static bool test_push_charset(struct torture_context *tctx)
torture_assert_ntstatus_ok(tctx, tdr_push_charset(tdr, &l, 4, 1, CH_UTF8),
"push failed");
torture_assert_int_equal(tctx, 4, tdr->data.length, "offset invalid");
- torture_assert(tctx, str
cmp("bloe", (const char *)tdr->data.data
) == 0, "right string push");
+ torture_assert(tctx, str
ncmp("bloe", (const char *)tdr->data.data, 4
) == 0, "right string push");
torture_assert_ntstatus_ok(tctx, tdr_push_charset(tdr, &l, -1, 1, CH_UTF8),
"push failed");