summaryrefslogtreecommitdiff
path: root/source4/lib/registry/tests
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-01-07 14:11:29 -0600
committerStefan Metzmacher <metze@samba.org>2008-01-07 08:18:07 -0600
commit47f6bbf8cf5bdd03c72c59d00e3e1eab8895590e (patch)
treeffbfa1586fa70dd22422e8e697985af51ec75fd4 /source4/lib/registry/tests
parent7f8276b06d5000d12c0d64167853a033b924af32 (diff)
downloadsamba-47f6bbf8cf5bdd03c72c59d00e3e1eab8895590e.tar.gz
samba-47f6bbf8cf5bdd03c72c59d00e3e1eab8895590e.tar.bz2
samba-47f6bbf8cf5bdd03c72c59d00e3e1eab8895590e.zip
r26689: registry: Return max_subkeynamelen, max_valnamelen and max_valbufsize in getkeyinfo().
(This used to be commit b06896d2378e536f5044dbe500a5232a89d6d0b5)
Diffstat (limited to 'source4/lib/registry/tests')
-rw-r--r--source4/lib/registry/tests/hive.c4
-rw-r--r--source4/lib/registry/tests/registry.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/source4/lib/registry/tests/hive.c b/source4/lib/registry/tests/hive.c
index 36eea84d94..22b4785222 100644
--- a/source4/lib/registry/tests/hive.c
+++ b/source4/lib/registry/tests/hive.c
@@ -47,7 +47,7 @@ static bool test_keyinfo_root(struct torture_context *tctx,
/* This is a new backend. There should be no subkeys and no
* values */
error = hive_key_get_info(tctx, root, NULL, &num_subkeys, &num_values,
- NULL);
+ NULL, NULL, NULL, NULL);
torture_assert_werr_ok(tctx, error, "reg_key_num_subkeys()");
torture_assert_int_equal(tctx, num_subkeys, 0,
@@ -80,7 +80,7 @@ static bool test_keyinfo_nums(struct torture_context *tctx, void *test_data)
/* This is a new backend. There should be no subkeys and no
* values */
error = hive_key_get_info(tctx, root, NULL, &num_subkeys, &num_values,
- NULL);
+ NULL, NULL, NULL, NULL);
torture_assert_werr_ok(tctx, error, "reg_key_num_subkeys()");
torture_assert_int_equal(tctx, num_subkeys, 1, "subkey count");
diff --git a/source4/lib/registry/tests/registry.c b/source4/lib/registry/tests/registry.c
index 2133e72310..75fbe1cbea 100644
--- a/source4/lib/registry/tests/registry.c
+++ b/source4/lib/registry/tests/registry.c
@@ -265,7 +265,7 @@ static bool test_query_key(struct torture_context *tctx, void *_data)
error = reg_key_get_info(tctx, subkey, &classname,
&num_subkeys, &num_values,
- &last_changed_time);
+ &last_changed_time, NULL, NULL, NULL);
torture_assert_werr_ok(tctx, error, "get info key");
torture_assert(tctx, classname == NULL, "classname");
@@ -295,7 +295,7 @@ static bool test_query_key_nums(struct torture_context *tctx, void *_data)
torture_assert_werr_ok(tctx, error, "set value");
error = reg_key_get_info(tctx, subkey1, NULL, &num_subkeys,
- &num_values, NULL);
+ &num_values, NULL, NULL, NULL, NULL);
torture_assert_werr_ok(tctx, error, "get info key");
torture_assert_int_equal(tctx, num_subkeys, 1, "num subkeys");