diff options
author | Kamen Mazdrashki <kamen.mazdrashki@postpath.com> | 2009-12-06 03:18:11 +0200 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-12-08 12:39:10 +1100 |
commit | 4653d05fef15944e550fafe7c31961dbf007fd95 (patch) | |
tree | febd8499dd655fb700d4d812f1336b274a962953 /lib | |
parent | 8efabcc8a5dcd83deed8ef8e17826a1d347e6d83 (diff) | |
download | samba-4653d05fef15944e550fafe7c31961dbf007fd95.tar.gz samba-4653d05fef15944e550fafe7c31961dbf007fd95.tar.bz2 samba-4653d05fef15944e550fafe7c31961dbf007fd95.zip |
tdr-test: Fix 'push_charset' test
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tdr/testsuite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tdr/testsuite.c b/lib/tdr/testsuite.c index 36bb164a9a..ca76b5291e 100644 --- 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, strcmp("bloe", (const char *)tdr->data.data) == 0, "right string push"); + torture_assert(tctx, strncmp("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"); |