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/blogc-runserver | |
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/blogc-runserver')
-rw-r--r-- | tests/blogc-runserver/check_httpd_utils.c | 12 | ||||
-rw-r--r-- | tests/blogc-runserver/check_mime.c | 8 |
2 files changed, 10 insertions, 10 deletions
diff --git a/tests/blogc-runserver/check_httpd_utils.c b/tests/blogc-runserver/check_httpd_utils.c index 3e21e63..9b2c39c 100644 --- a/tests/blogc-runserver/check_httpd_utils.c +++ b/tests/blogc-runserver/check_httpd_utils.c @@ -122,11 +122,11 @@ test_get_extension(void **state) int main(void) { - const UnitTest tests[] = { - unit_test(test_readline), - unit_test(test_hextoi), - unit_test(test_urldecode), - unit_test(test_get_extension), + const struct CMUnitTest tests[] = { + cmocka_unit_test(test_readline), + cmocka_unit_test(test_hextoi), + cmocka_unit_test(test_urldecode), + cmocka_unit_test(test_get_extension), }; - return run_tests(tests); + return cmocka_run_group_tests(tests, NULL, NULL); } diff --git a/tests/blogc-runserver/check_mime.c b/tests/blogc-runserver/check_mime.c index c081b8a..59d7238 100644 --- a/tests/blogc-runserver/check_mime.c +++ b/tests/blogc-runserver/check_mime.c @@ -84,9 +84,9 @@ test_guess_index(void **state) int main(void) { - const UnitTest tests[] = { - unit_test(test_guess_content_type), - unit_test(test_guess_index), + const struct CMUnitTest tests[] = { + cmocka_unit_test(test_guess_content_type), + cmocka_unit_test(test_guess_index), }; - return run_tests(tests); + return cmocka_run_group_tests(tests, NULL, NULL); } |