summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/registry/tests/hive.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/lib/registry/tests/hive.c b/source4/lib/registry/tests/hive.c
index 9e76ce6aa1..2ddfe6f036 100644
--- a/source4/lib/registry/tests/hive.c
+++ b/source4/lib/registry/tests/hive.c
@@ -187,10 +187,9 @@ static bool test_get_value(struct torture_context *tctx, const void *test_data)
error = hive_get_value(mem_ctx, subkey, "Answer", &type, &value);
torture_assert_werr_ok(tctx, error, "getting value");
- torture_assert(tctx, memcmp(value.data, &data, 4) == 0, "value 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");
return true;
}
@@ -251,10 +250,10 @@ static bool test_list_values(struct torture_context *tctx,
torture_assert_werr_ok(tctx, error, "getting value");
torture_assert_str_equal(tctx, name, "Answer", "value name");
- torture_assert(tctx, memcmp(value.data, &data, 4) == 0, "value 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");
error = hive_get_value_by_index(mem_ctx, subkey, 1, &name,
&type, &value);