diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2020-11-05 22:03:02 +0100 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2020-11-05 22:03:02 +0100 |
commit | 3ff8703ca68709c116762a5feda378903e2419d9 (patch) | |
tree | 7a807d07a45766443cb492414eefb31703ef072c /tests/common/check_config_parser.c | |
parent | 68feeee28d2121cd2311650c5a21740bbad8074b (diff) | |
download | blogc-3ff8703ca68709c116762a5feda378903e2419d9.tar.gz blogc-3ff8703ca68709c116762a5feda378903e2419d9.tar.bz2 blogc-3ff8703ca68709c116762a5feda378903e2419d9.zip |
tests: upgrade deprecated cmocka test runner
Diffstat (limited to 'tests/common/check_config_parser.c')
-rw-r--r-- | tests/common/check_config_parser.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/common/check_config_parser.c b/tests/common/check_config_parser.c index 49e2a5b..5360f54 100644 --- a/tests/common/check_config_parser.c +++ b/tests/common/check_config_parser.c @@ -1019,19 +1019,19 @@ test_config_error_key_without_value(void **state) int main(void) { - const UnitTest tests[] = { - unit_test(test_config_empty), - unit_test(test_config_section_empty), - unit_test(test_config_section), - unit_test(test_config_section_multiple_keys), - unit_test(test_config_section_multiple_sections), - unit_test(test_config_section_list), - unit_test(test_config_quoted_values), - unit_test(test_config_empty_values), - unit_test(test_config_key_prefix), - unit_test(test_config_error_start), - unit_test(test_config_error_section_with_newline), - unit_test(test_config_error_key_without_value), + const struct CMUnitTest tests[] = { + cmocka_unit_test(test_config_empty), + cmocka_unit_test(test_config_section_empty), + cmocka_unit_test(test_config_section), + cmocka_unit_test(test_config_section_multiple_keys), + cmocka_unit_test(test_config_section_multiple_sections), + cmocka_unit_test(test_config_section_list), + cmocka_unit_test(test_config_quoted_values), + cmocka_unit_test(test_config_empty_values), + cmocka_unit_test(test_config_key_prefix), + cmocka_unit_test(test_config_error_start), + cmocka_unit_test(test_config_error_section_with_newline), + cmocka_unit_test(test_config_error_key_without_value), }; - return run_tests(tests); + return cmocka_run_group_tests(tests, NULL, NULL); } |