From d81e2af69de4401335681d859c44b2c30fb4456c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Matthias=20Dieter=20Walln=C3=B6fer?= Date: Tue, 29 Jun 2010 18:27:49 +0200 Subject: [PATCH] s4:lib/registry/tests/registry.c - test recursive key generation --- source4/lib/registry/tests/registry.c | 11 +++-------- 1 file 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; } -- 2.34.1