diff options
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/registry/tests/registry.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/source4/lib/registry/tests/registry.c b/source4/lib/registry/tests/registry.c index 1bb20399a2..3003468b15 100644 --- a/source4/lib/registry/tests/registry.c +++ b/source4/lib/registry/tests/registry.c @@ -117,22 +117,17 @@ static bool test_create_subkey(struct torture_context *tctx, void *_data) static bool test_create_nested_subkey(struct torture_context *tctx, void *_data) { struct registry_context *rctx = (struct registry_context *)_data; - struct registry_key *root, *newkey1, *newkey2; + struct registry_key *root, *newkey; WERROR error; error = reg_get_predefined_key(rctx, HKEY_CLASSES_ROOT, &root); torture_assert_werr_ok(tctx, error, "getting predefined key failed"); - error = reg_key_add_name(rctx, root, "Hamburg", NULL, NULL, - &newkey1); - torture_assert_werr_ok(tctx, error, "Creating key return code"); - torture_assert(tctx, newkey1 != NULL, "Creating new key"); - error = reg_key_add_name(rctx, root, "Hamburg\\Hamburg", NULL, NULL, - &newkey2); + &newkey); torture_assert_werr_ok(tctx, error, "Creating key return code"); - torture_assert(tctx, newkey2 != NULL, "Creating new key"); + torture_assert(tctx, newkey != NULL, "Creating new key"); return true; } |