MDL-38912 prevent time-outs during unit tests.

This commit is contained in:
Tim Hunt
2013-04-05 18:39:25 +01:00
parent 7d253e0977
commit d4aac8e4f6
+8
View File
@@ -587,6 +587,14 @@ class phpunit_util {
if ($COURSE->id != $oldsite->id) {
$warnings[] = 'Warning: unexpected change of $COURSE';
}
if (ini_get('max_execution_time') != 0) {
// TODO un-comment this warning, once we have fixed the test
// failures that it causes.
// $warnings[] = 'Warning: max_execution_time was changed.';
// See MDL-38989 for details.
set_time_limit(0);
}
}
// restore original globals