We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99ecd32 commit eb37032Copy full SHA for eb37032
mutmut/__main__.py
@@ -1014,7 +1014,8 @@ def read_one_child_exit_status():
1014
1015
estimated_time_of_tests = m.estimated_time_of_tests_by_mutant[mutant_name]
1016
cpu_time_limit = ceil((estimated_time_of_tests + 1) * 2 + process_time()) * 10
1017
- resource.setrlimit(resource.RLIMIT_CPU, (cpu_time_limit, cpu_time_limit))
+ # signal SIGXCPU after <cpu_time_limit>. One second later signal SIGKILL if it is still running
1018
+ resource.setrlimit(resource.RLIMIT_CPU, (cpu_time_limit, cpu_time_limit + 1))
1019
1020
with CatchOutput():
1021
result = runner.run_tests(mutant_name=mutant_name, tests=tests)
0 commit comments