summaryrefslogtreecommitdiff
path: root/source4/lib/registry/tests/diff.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-04-15 22:08:31 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-04-15 22:08:31 +0200
commitf01c377bc039b776ded213f455cdb79d682ae7b2 (patch)
tree6a0e4e649e00d05f58771a889c7dcbe7d4b41944 /source4/lib/registry/tests/diff.c
parent439f75f522d241aa78f06572c47ff6b871289793 (diff)
downloadsamba-f01c377bc039b776ded213f455cdb79d682ae7b2.tar.gz
samba-f01c377bc039b776ded213f455cdb79d682ae7b2.tar.bz2
samba-f01c377bc039b776ded213f455cdb79d682ae7b2.zip
Fix formatting, remove unused function.
(This used to be commit 6ec206ba58777395b2d1251680b21648f4c0f78e)
Diffstat (limited to 'source4/lib/registry/tests/diff.c')
-rw-r--r--source4/lib/registry/tests/diff.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/source4/lib/registry/tests/diff.c b/source4/lib/registry/tests/diff.c
index 492f4de0b5..c7726545f6 100644
--- a/source4/lib/registry/tests/diff.c
+++ b/source4/lib/registry/tests/diff.c
@@ -37,11 +37,6 @@ struct diff_tcase_data {
static bool test_generate_diff(struct torture_context *tctx, void *tcase_data)
{
- /* WERROR reg_generate_diff(struct registry_context *ctx1,
- struct registry_context *ctx2,
- const struct reg_diff_callbacks *callbacks,
- void *callback_data)
- */
WERROR error;
struct diff_tcase_data *td = tcase_data;
@@ -97,8 +92,6 @@ static bool test_diff_apply(struct torture_context *tctx, void *tcase_data)
error = td->r1_ctx->ops->open_key(td->r1_ctx, key, "Explorer", &key);
torture_assert_werr_ok(tctx, error, "Opening HKLM\\..\\Policies\\Explorer failed");
-
-
return true;
}
@@ -141,6 +134,7 @@ static bool test_generate_diff_key_null(struct torture_context *tctx, void *tcas
return true;
}
+
static void tcase_add_tests (struct torture_tcase *tcase)
{
torture_tcase_add_simple_test(tcase, "test_generate_diff_key_add",
@@ -284,23 +278,18 @@ static bool diff_setup_dotreg_tcase (struct torture_context *tctx, void **data)
return true;
}
-static bool diff_teardown_tcase (struct torture_context *tctx, void *data)
-{
- /* Done is called by generate_diff itself! */
- return true;
-}
struct torture_suite *torture_registry_diff(TALLOC_CTX *mem_ctx)
{
struct torture_tcase *tcase;
struct torture_suite *suite = torture_suite_create(mem_ctx, "DIFF");
tcase = torture_suite_add_tcase(suite, "PReg");
- torture_tcase_set_fixture(tcase, diff_setup_preg_tcase, diff_teardown_tcase);
+ torture_tcase_set_fixture(tcase, diff_setup_preg_tcase, NULL);
tcase_add_tests(tcase);
tcase = torture_suite_add_tcase(suite, "dotreg");
- torture_tcase_set_fixture(tcase, diff_setup_dotreg_tcase, diff_teardown_tcase);
+ torture_tcase_set_fixture(tcase, diff_setup_dotreg_tcase, NULL);
tcase_add_tests(tcase);
return suite;