mirror of
https://github.com/mirror/make.git
synced 2026-08-31 03:38:03 +08:00
Fix Savannah bug #20452.
Add a new feature to the test suite suggested by Icarus Sparry: set a timer before invoking a test, so that if it loops infinitely we will wake up and have a chance to kill the process and continue.
This commit is contained in:
@@ -45,7 +45,8 @@ close(MAKEFILE);
|
||||
$mkoptions = "-l 0.0001";
|
||||
$mkoptions .= " -j 4" if ($parallel_jobs);
|
||||
|
||||
&run_make_with_options($makefile, $mkoptions, &get_logfile);
|
||||
# We have to wait longer than the default (5s).
|
||||
&run_make_with_options($makefile, $mkoptions, &get_logfile, 0, 8);
|
||||
|
||||
$slurp = &read_file_into_string (&get_logfile(1));
|
||||
if ($slurp !~ /cannot enforce load limit/) {
|
||||
|
||||
Reference in New Issue
Block a user