diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-04-13 22:00:36 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-04-13 22:00:36 +0200 |
commit | 148d3b170ae00d4001fa011450c7238052d32ae2 (patch) | |
tree | 02eb3175d46a335ede787049caa1de1c563f20ca /source4/lib/util/tests/file.c | |
parent | ae553dfcecdd605658dea73ccb6e577b059f478c (diff) | |
download | samba-148d3b170ae00d4001fa011450c7238052d32ae2.tar.gz samba-148d3b170ae00d4001fa011450c7238052d32ae2.tar.bz2 samba-148d3b170ae00d4001fa011450c7238052d32ae2.zip |
Use torture_assert_mem_equal() in a couple more places.
(This used to be commit e2c3fab9d1bf0482c15a115e7d373562ffe50b29)
Diffstat (limited to 'source4/lib/util/tests/file.c')
-rw-r--r-- | source4/lib/util/tests/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/util/tests/file.c b/source4/lib/util/tests/file.c index fe87293671..3377e833dc 100644 --- a/source4/lib/util/tests/file.c +++ b/source4/lib/util/tests/file.c @@ -45,9 +45,9 @@ static bool test_file_load_save(struct torture_context *tctx) data = file_load(TEST_FILENAME, &len, mem_ctx); torture_assert(tctx, data, "loading file"); - torture_assert(tctx, len == strlen(TEST_DATA), "Length"); + torture_assert_int_equal(tctx, len, strlen(TEST_DATA), "Length"); - torture_assert(tctx, memcmp(data, TEST_DATA, len) == 0, "Contents"); + torture_assert_mem_equal(tctx, data, TEST_DATA, len, "Contents"); unlink(TEST_FILENAME); return true; |