From 32962961a8698a7e68e378bfd4ae46f5358e33ad Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Thu, 26 Apr 2012 20:36:37 +0200 Subject: [PATCH] MDL-32651 increase memory limit to 2G when running phpunit tests This should help when running tests with coverage reports. --- lib/phpunit/bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/phpunit/bootstrap.php b/lib/phpunit/bootstrap.php index 186b4d68f05..af83492874f 100644 --- a/lib/phpunit/bootstrap.php +++ b/lib/phpunit/bootstrap.php @@ -196,7 +196,7 @@ require_once("$CFG->dirroot/lib/phpunit/lib.php"); define('ABORT_AFTER_CONFIG_CANCEL', true); require("$CFG->dirroot/lib/setup.php"); -raise_memory_limit(MEMORY_EXTRA); +raise_memory_limit(MEMORY_HUGE); if (PHPUNIT_UTIL) { // we are not going to do testing, this is 'true' in utility scripts that only init database