From: tjhunt Date: Mon, 22 Jun 2009 06:59:13 +0000 (+0000) Subject: Try to avoid time-outs while running the unit tests X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0c49b68d59ec2925755da61f71c1a8893d1041cb;p=moodle.git Try to avoid time-outs while running the unit tests --- diff --git a/lib/simpletestlib/test_case.php b/lib/simpletestlib/test_case.php index fce7d814c6..61cac9f5ab 100644 --- a/lib/simpletestlib/test_case.php +++ b/lib/simpletestlib/test_case.php @@ -605,6 +605,9 @@ class TestSuite { // Do not execute this test because $CFG->unittestprefix is not set, but it will be required. continue; } + if ($currenttl = @ini_get('max_execution_time')) { + @ini_set('max_execution_time', $currenttl); + } // moodle hack end $test = &new $class(); $test->run($reporter);