git.samba.org
/
tprouty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
225a65d
)
Use new torture_assert_mem_equal.
author
Jelmer Vernooij
<jelmer@samba.org>
Sun, 13 Apr 2008 19:33:59 +0000
(21:33 +0200)
committer
Jelmer Vernooij
<jelmer@samba.org>
Sun, 13 Apr 2008 19:33:59 +0000
(21:33 +0200)
(This used to be commit
b6319b64d7ef9c58f771f338317d4d525d39a8f2
)
source4/lib/registry/tests/registry.c
patch
|
blob
|
history
diff --git
a/source4/lib/registry/tests/registry.c
b/source4/lib/registry/tests/registry.c
index e5e34c11e0bd2368845b0f347db28b16ddedb8be..1780b4e7727991cd30cffa7d8fadef21574e14b5 100644
(file)
--- a/
source4/lib/registry/tests/registry.c
+++ b/
source4/lib/registry/tests/registry.c
@@
-428,7
+428,7
@@
static bool test_get_value(struct torture_context *tctx, void *_data)
torture_assert_werr_ok(tctx, error, "getting value");
torture_assert_int_equal(tctx, 4, data.length, "value length ok");
- torture_assert
(tctx, memcmp(data.data, &value, 4) == 0
,
+ torture_assert
_mem_equal(tctx, data.data, &value, 4
,
"value content ok");
torture_assert_int_equal(tctx, REG_DWORD, type, "value type");