MDL-38912 fix incorrect timeout reset

This commit is contained in:
Petr Škoda
2013-04-10 00:07:26 +02:00
committed by Eloy Lafuente (stronk7)
parent 892c4e1bc6
commit 1802cb2536
+10 -7
View File
@@ -607,13 +607,16 @@ class phpunit_util {
$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);
}
}
if (ini_get('max_execution_time') != 0) {
// This is special warning for all resets because we do not want any
// libraries to mess with timeouts unintentionally.
// Our PHPUnit integration is not supposed to change it either.
// TODO: MDL-38912 uncomment and fix all + somehow resolve timeouts in failed tests.
//$warnings[] = 'Warning: max_execution_time was changed.';
set_time_limit(0);
}
// restore original globals