diff options
author | Kai Blin <kai@samba.org> | 2007-12-24 13:06:57 -0600 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-26 11:57:05 -0600 |
commit | a6caca9abcf4de57901ba8ecc610cf8c13cd2821 (patch) | |
tree | b298814fca08df37aaba6fa3802944dfd57771ad /source4/lib/registry/tests/hive.c | |
parent | 3c744ddd2c33a9a06013f357261b8ea86804e8e8 (diff) | |
download | samba-a6caca9abcf4de57901ba8ecc610cf8c13cd2821.tar.gz samba-a6caca9abcf4de57901ba8ecc610cf8c13cd2821.tar.bz2 samba-a6caca9abcf4de57901ba8ecc610cf8c13cd2821.zip |
r26589: torture: Add non-const version of torture_tcase_add_simple_test
(This used to be commit 1ae9cde5105cc4349a44e6098e9393e06acaf95d)
Diffstat (limited to 'source4/lib/registry/tests/hive.c')
-rw-r--r-- | source4/lib/registry/tests/hive.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/source4/lib/registry/tests/hive.c b/source4/lib/registry/tests/hive.c index dc59d0f9ca..bc3c82552e 100644 --- a/source4/lib/registry/tests/hive.c +++ b/source4/lib/registry/tests/hive.c @@ -61,11 +61,10 @@ static bool test_keyinfo_root(struct torture_context *tctx, return true; } -static bool test_keyinfo_nums(struct torture_context *tctx, - const void *test_data) +static bool test_keyinfo_nums(struct torture_context *tctx, void *test_data) { uint32_t num_subkeys, num_values; - const struct hive_key *root = (const struct hive_key *)test_data; + struct hive_key *root = (struct hive_key *)test_data; WERROR error; struct hive_key *subkey; uint32_t data = 42; @@ -111,10 +110,9 @@ static bool test_add_subkey(struct torture_context *tctx, return true; } -static bool test_flush_key(struct torture_context *tctx, - const void *test_data) +static bool test_flush_key(struct torture_context *tctx, void *test_data) { - const struct hive_key *root = (const struct hive_key *)test_data; + struct hive_key *root = (struct hive_key *)test_data; torture_assert_werr_ok(tctx, hive_key_flush(root), "flush key"); @@ -268,11 +266,11 @@ static void tcase_add_tests(struct torture_tcase *tcase) test_del_nonexistant_key); torture_tcase_add_simple_test_const(tcase, "add_subkey", test_add_subkey); - torture_tcase_add_simple_test_const(tcase, "flush_key", + torture_tcase_add_simple_test(tcase, "flush_key", test_flush_key); torture_tcase_add_simple_test_const(tcase, "get_info", test_keyinfo_root); - torture_tcase_add_simple_test_const(tcase, "get_info_nums", + torture_tcase_add_simple_test(tcase, "get_info_nums", test_keyinfo_nums); torture_tcase_add_simple_test_const(tcase, "set_value", test_set_value); |