From 3ff8703ca68709c116762a5feda378903e2419d9 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Thu, 5 Nov 2020 22:03:02 +0100 Subject: tests: upgrade deprecated cmocka test runner --- tests/blogc-runserver/check_mime.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/blogc-runserver/check_mime.c') 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); } -- cgit v1.2.3-18-g5258