1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-04 08:22:08 +03:00

r26665: registry: Fix tests on bigendian machines.

(This used to be commit bcd8f50f79)
This commit is contained in:
Jelmer Vernooij
2008-01-05 13:59:53 -06:00
committed by Stefan Metzmacher
parent e15a33151c
commit df70180c0f

View File

@ -186,7 +186,9 @@ static bool test_get_value(struct torture_context *tctx, const void *test_data)
torture_assert_int_equal(tctx, value.length, 4, "value length");
torture_assert_int_equal(tctx, type, REG_DWORD, "value type");
torture_assert(tctx, memcmp(value.data, &data, 4) == 0, "value data");
torture_assert_int_equal(tctx, data, IVAL(value.data, 0),
"value data");
return true;
}
@ -250,7 +252,9 @@ static bool test_list_values(struct torture_context *tctx,
torture_assert_int_equal(tctx, value.length, 4, "value length");
torture_assert_int_equal(tctx, type, REG_DWORD, "value type");
torture_assert(tctx, memcmp(value.data, &data, 4) == 0, "value data");
torture_assert_int_equal(tctx, data, IVAL(value.data, 0), "value data");
error = hive_get_value_by_index(mem_ctx, subkey, 1, &name,
&type, &value);