[SCM] Samba Shared Repository - branch master updated -
65d5b1e7b494f94cf1ffef04ab74a68967789d89
Jelmer Vernooij
jelmer at samba.org
Mon Oct 13 14:41:21 GMT 2008
The branch, master has been updated
via 65d5b1e7b494f94cf1ffef04ab74a68967789d89 (commit)
from 2ce72b5a69e3cf306277460a6d87754bf71c024b (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 65d5b1e7b494f94cf1ffef04ab74a68967789d89
Author: Jelmer Vernooij <jelmer at samba.org>
Date: Mon Oct 13 16:40:27 2008 +0200
Test maxsize parameter to file_load() as used in Samba 3.
-----------------------------------------------------------------------
Summary of changes:
lib/util/tests/file.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/lib/util/tests/file.c b/lib/util/tests/file.c
index 9a303bf..4aff0e9 100644
--- a/lib/util/tests/file.c
+++ b/lib/util/tests/file.c
@@ -49,6 +49,12 @@ static bool test_file_load_save(struct torture_context *tctx)
torture_assert_mem_equal(tctx, data, TEST_DATA, len, "Contents");
+ data = file_load(TEST_FILENAME, &len, 5, mem_ctx);
+
+ torture_assert_int_equal(tctx, len, 5, "Length");
+
+ torture_assert_mem_equal(tctx, data, TEST_DATA, len, "Contents");
+
unlink(TEST_FILENAME);
return true;
}
--
Samba Shared Repository
More information about the samba-cvs
mailing list