From 691693304b0ccafda3c2002452a8b8b8afe729f3 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Wed, 5 Aug 2009 15:58:35 +0000 Subject: #193383 by TheRec, JirkaRybka, and Bart Jansens: Centralize calls to set_time_limit() and prevent warnings/errors. --- scripts/run-tests.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'scripts') diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh index 37d3c4399..26d724492 100755 --- a/scripts/run-tests.sh +++ b/scripts/run-tests.sh @@ -70,10 +70,8 @@ if ($args['list']) { $test_list = simpletest_script_get_test_list(); -// If not in 'safe mode', increase the maximum execution time. -if (!ini_get('safe_mode')) { - set_time_limit(0); -} +// Try to allocate unlimited time to run the tests. +drupal_set_time_limit(0); simpletest_script_reporter_init(); -- cgit v1.2.3