git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d0525ff
)
More endian fixes in the registry
author
Andrew Bartlett
<abartlet@samba.org>
Thu, 17 Apr 2008 16:40:56 +0000
(18:40 +0200)
committer
Andrew Bartlett
<abartlet@samba.org>
Thu, 17 Apr 2008 16:40:56 +0000
(18:40 +0200)
(This used to be commit
b26662be196a84237543eb90d6e08809489df3a9
)
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 85b68ac8a23c0b9079b62ccd35868693c6d0d98f..661d7c2c6985ba16d0a87f70911511750479be05 100644
(file)
--- a/
source4/lib/registry/tests/registry.c
+++ b/
source4/lib/registry/tests/registry.c
@@
-431,9
+431,9
@@
static bool test_get_value(struct torture_context *tctx, void *_data)
&data);
torture_assert_werr_ok(tctx, error, "getting value");
&data);
torture_assert_werr_ok(tctx, error, "getting value");
- torture_assert_int_equal(tctx,
4
, data.length, "value length ok");
- torture_assert_mem_equal(tctx, data.data, value,
4
,
-
"value content ok");
+ torture_assert_int_equal(tctx,
sizeof(value)
, data.length, "value length ok");
+ torture_assert_mem_equal(tctx, data.data, value,
sizeof(value)
,
+ "value content ok");
torture_assert_int_equal(tctx, REG_DWORD, type, "value type");
return true;
torture_assert_int_equal(tctx, REG_DWORD, type, "value type");
return true;
@@
-501,8
+501,8
@@
static bool test_list_values(struct torture_context *tctx, void *_data)
torture_assert_werr_ok(tctx, error, "getting value");
torture_assert_str_equal(tctx, name, "bar", "value name");
torture_assert_werr_ok(tctx, error, "getting value");
torture_assert_str_equal(tctx, name, "bar", "value name");
- torture_assert_int_equal(tctx,
4
, data.length, "value length");
- torture_assert_mem_equal(tctx, data.data,
&
value, sizeof(value),
+ torture_assert_int_equal(tctx,
sizeof(value)
, data.length, "value length");
+ torture_assert_mem_equal(tctx, data.data, value, sizeof(value),
"value content");
torture_assert_int_equal(tctx, REG_DWORD, type, "value type");
"value content");
torture_assert_int_equal(tctx, REG_DWORD, type, "value type");