]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
github: Increase timeout for process_t tests
authorTobias Brunner <tobias@strongswan.org>
Mon, 15 Jan 2024 14:31:21 +0000 (15:31 +0100)
committerTobias Brunner <tobias@strongswan.org>
Tue, 16 Jan 2024 10:00:29 +0000 (11:00 +0100)
This seems to be necessary on macOS 12 for some reason (note that handling
timeouts in these test cases doesn't really work).

src/libstrongswan/tests/suites/test_process.c

index bd0f2bf3e9de84ddc07506d20ad45b61f1bd7ee3..940da5b8d42a86f0b273808ed5fd2359729d2b9a 100644 (file)
@@ -203,24 +203,29 @@ Suite *process_suite_create()
        s = suite_create("process");
 
        tc = tcase_create("return values");
+       tcase_set_timeout(tc, 10);
        tcase_add_test(tc, test_retval_true);
        tcase_add_test(tc, test_retval_false);
        suite_add_tcase(s, tc);
 
        tc = tcase_create("not found");
+       tcase_set_timeout(tc, 10);
        tcase_add_test(tc, test_not_found);
        suite_add_tcase(s, tc);
 
        tc = tcase_create("echo");
+       tcase_set_timeout(tc, 10);
        tcase_add_test(tc, test_echo);
        tcase_add_test(tc, test_echo_err);
        suite_add_tcase(s, tc);
 
        tc = tcase_create("env");
+       tcase_set_timeout(tc, 10);
        tcase_add_test(tc, test_env);
        suite_add_tcase(s, tc);
 
        tc = tcase_create("shell");
+       tcase_set_timeout(tc, 10);
        tcase_add_test(tc, test_shell);
        suite_add_tcase(s, tc);