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/registry/tests/registry.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/registry/tests/registry.c')
-rw-r--r-- | source4/lib/registry/tests/registry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/registry/tests/registry.c b/source4/lib/registry/tests/registry.c index 1780b4e772..b19a6abffb 100644 --- a/source4/lib/registry/tests/registry.c +++ b/source4/lib/registry/tests/registry.c @@ -496,7 +496,7 @@ static bool test_list_values(struct torture_context *tctx, void *_data) torture_assert_str_equal(tctx, name, "bar", "value name"); torture_assert_int_equal(tctx, 4, data.length, "value length"); - torture_assert(tctx, memcmp(data.data, &value, 4) == 0, + torture_assert_mem_equal(tctx, data.data, &value, 4, "value content"); torture_assert_int_equal(tctx, REG_DWORD, type, "value type"); |