summaryrefslogtreecommitdiff
path: root/scripts/run-tests.sh
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-05 15:58:35 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-05 15:58:35 +0000
commit691693304b0ccafda3c2002452a8b8b8afe729f3 (patch)
tree05ec348e8292f40bdf34e3aa259b3bfe2fd0f580 /scripts/run-tests.sh
parentc3081764c3eabeed2318b7302339d52a21eb92f0 (diff)
downloadbrdo-691693304b0ccafda3c2002452a8b8b8afe729f3.tar.gz
brdo-691693304b0ccafda3c2002452a8b8b8afe729f3.tar.bz2
#193383 by TheRec, JirkaRybka, and Bart Jansens: Centralize calls to set_time_limit() and prevent warnings/errors.
Diffstat (limited to 'scripts/run-tests.sh')
-rwxr-xr-xscripts/run-tests.sh6
1 files changed, 2 insertions, 4 deletions
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();