From: Bastian Dehn Date: Tue, 28 Oct 2025 17:30:39 +0000 (+0100) Subject: change rename setup teardown set opts tests X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=be3850dea66112994c343799fcdcbad414a14924;p=sane-kds-s2000w-net.git change rename setup teardown set opts tests --- diff --git a/tests/kds_s2000w_net_set_opt_tests.c b/tests/kds_s2000w_net_set_opt_tests.c index c725f92..85b9f7c 100644 --- a/tests/kds_s2000w_net_set_opt_tests.c +++ b/tests/kds_s2000w_net_set_opt_tests.c @@ -11,7 +11,7 @@ #include "../src/kds_s2000w_handler.h" #include "../src/kds_s2000w_option_descriptors.h" -int setup_default_option(void** state) +int setup(void** state) { kds_s2000w_option_descriptors_init(PROFILE_FULL); @@ -88,7 +88,7 @@ int setup_default_option(void** state) return 0; } -int teardown_default_option(void** state) +int teardown(void** state) { kds_s2000w_option_descriptors_free(); response_t** responses = (response_t**) *state; @@ -785,5 +785,5 @@ int main() cmocka_unit_test(kds_s2000w_net_set_option_color_dropout_and_deps) }; - return cmocka_run_group_tests(net_tests, setup_default_option, teardown_default_option); + return cmocka_run_group_tests(net_tests, setup, teardown); } \ No newline at end of file