aboutsummaryrefslogtreecommitdiffstats
path: root/tests/blogc-git-receiver
diff options
context:
space:
mode:
Diffstat (limited to 'tests/blogc-git-receiver')
-rw-r--r--tests/blogc-git-receiver/check_pre_receive_parser.c6
-rw-r--r--tests/blogc-git-receiver/check_settings.c6
-rw-r--r--tests/blogc-git-receiver/check_shell_command_parser.c6
3 files changed, 9 insertions, 9 deletions
diff --git a/tests/blogc-git-receiver/check_pre_receive_parser.c b/tests/blogc-git-receiver/check_pre_receive_parser.c
index f663f64..0415be1 100644
--- a/tests/blogc-git-receiver/check_pre_receive_parser.c
+++ b/tests/blogc-git-receiver/check_pre_receive_parser.c
@@ -97,8 +97,8 @@ test_pre_receive_parse(void **state)
int
main(void)
{
- const UnitTest tests[] = {
- unit_test(test_pre_receive_parse),
+ const struct CMUnitTest tests[] = {
+ cmocka_unit_test(test_pre_receive_parse),
};
- return run_tests(tests);
+ return cmocka_run_group_tests(tests, NULL, NULL);
}
diff --git a/tests/blogc-git-receiver/check_settings.c b/tests/blogc-git-receiver/check_settings.c
index cb12037..61cd469 100644
--- a/tests/blogc-git-receiver/check_settings.c
+++ b/tests/blogc-git-receiver/check_settings.c
@@ -84,8 +84,8 @@ test_settings_get_section(void **state)
int
main(void)
{
- const UnitTest tests[] = {
- unit_test(test_settings_get_section),
+ const struct CMUnitTest tests[] = {
+ cmocka_unit_test(test_settings_get_section),
};
- return run_tests(tests);
+ return cmocka_run_group_tests(tests, NULL, NULL);
}
diff --git a/tests/blogc-git-receiver/check_shell_command_parser.c b/tests/blogc-git-receiver/check_shell_command_parser.c
index 97e7b6e..eafeabb 100644
--- a/tests/blogc-git-receiver/check_shell_command_parser.c
+++ b/tests/blogc-git-receiver/check_shell_command_parser.c
@@ -208,8 +208,8 @@ test_shell_command_parse(void **state)
int
main(void)
{
- const UnitTest tests[] = {
- unit_test(test_shell_command_parse),
+ const struct CMUnitTest tests[] = {
+ cmocka_unit_test(test_shell_command_parse),
};
- return run_tests(tests);
+ return cmocka_run_group_tests(tests, NULL, NULL);
}