summaryrefslogtreecommitdiff
path: root/source4/lib/registry/tests
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-11-13 04:57:09 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:45:09 +0100
commit81ad27b3096af61f792dc9bd8983a86161f0f30b (patch)
tree74368c4eea33f79afd57d8992f79d0e90bbeaf0e /source4/lib/registry/tests
parent08dd389ddfe4da99ae8463c017608bc0b95f560f (diff)
downloadsamba-81ad27b3096af61f792dc9bd8983a86161f0f30b.tar.gz
samba-81ad27b3096af61f792dc9bd8983a86161f0f30b.tar.bz2
samba-81ad27b3096af61f792dc9bd8983a86161f0f30b.zip
r25935: Fix registry tests.
(This used to be commit b311094714b4d51ea7ea756df1aecba169dc0d45)
Diffstat (limited to 'source4/lib/registry/tests')
-rw-r--r--source4/lib/registry/tests/generic.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source4/lib/registry/tests/generic.c b/source4/lib/registry/tests/generic.c
index d18d300423..13e27cd80b 100644
--- a/source4/lib/registry/tests/generic.c
+++ b/source4/lib/registry/tests/generic.c
@@ -111,9 +111,9 @@ static bool test_reg_val_description_nullname(struct torture_context *ctx)
return true;
}
-_PUBLIC_ NTSTATUS torture_registry_init(void)
+_PUBLIC_ struct torture_suite *torture_registry(TALLOC_CTX *mem_ctx)
{
- struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "LOCAL-REGISTRY");
+ struct torture_suite *suite = torture_suite_create(mem_ctx, "REGISTRY");
torture_suite_add_simple_test(suite, "str_regtype",
test_str_regtype);
torture_suite_add_simple_test(suite, "reg_val_data_string dword",
@@ -133,7 +133,5 @@ _PUBLIC_ NTSTATUS torture_registry_init(void)
torture_suite_add_suite(suite, torture_registry_registry(suite));
torture_suite_add_suite(suite, torture_registry_diff(suite));
- torture_register_suite(suite);
-
- return NT_STATUS_OK;
+ return suite;
}