From bb4d040fadcb76a8828eaf24b4f0557ec11f44fb Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sat, 14 Jul 2007 02:57:46 +0000 Subject: 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. --- tests/scripts/options/dash-l | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/scripts/options/dash-l') diff --git a/tests/scripts/options/dash-l b/tests/scripts/options/dash-l index 58216f9..0b0f196 100644 --- a/tests/scripts/options/dash-l +++ b/tests/scripts/options/dash-l @@ -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/) { -- cgit v1.2.3