summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-06-29 18:27:49 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-07-01 15:48:05 +0200
commitd81e2af69de4401335681d859c44b2c30fb4456c (patch)
tree530a1305b4417fc09bf594acaecf532631a001cd /source4
parentae50385d524d8cb4831d8eb0c45feb4d04437f28 (diff)
downloadsamba-d81e2af69de4401335681d859c44b2c30fb4456c.tar.gz
samba-d81e2af69de4401335681d859c44b2c30fb4456c.tar.bz2
samba-d81e2af69de4401335681d859c44b2c30fb4456c.zip
s4:lib/registry/tests/registry.c - test recursive key generation
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/registry/tests/registry.c11
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;
}