From: ptarjan Date: Thu, 21 Nov 2013 23:34:20 +0000 (-0800) Subject: Use lower memory limits X-Git-Tag: 1.31.0-rc.0~17952^2 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=40f6571312456d1f5ae5e787914e14ea15cb646f;p=lhc%2Fweb%2Fwiklou.git Use lower memory limits HHVM is ~5x more memory efficient than php-src and it shouldn't make us fail this test Change-Id: I35a69766c42818c222d36e1cf2a7fabe63a4ece5 --- diff --git a/tests/phpunit/includes/GlobalFunctions/GlobalTest.php b/tests/phpunit/includes/GlobalFunctions/GlobalTest.php index df633b4426..f67f696124 100644 --- a/tests/phpunit/includes/GlobalFunctions/GlobalTest.php +++ b/tests/phpunit/includes/GlobalFunctions/GlobalTest.php @@ -292,11 +292,11 @@ class GlobalTest extends MediaWikiTestCase { unlink( $wgDebugLogFile ); wfDebugMem(); - $this->assertGreaterThan( 5000, preg_replace( '/\D/', '', file_get_contents( $wgDebugLogFile ) ) ); + $this->assertGreaterThan( 1000, preg_replace( '/\D/', '', file_get_contents( $wgDebugLogFile ) ) ); unlink( $wgDebugLogFile ); wfDebugMem( true ); - $this->assertGreaterThan( 5000000, preg_replace( '/\D/', '', file_get_contents( $wgDebugLogFile ) ) ); + $this->assertGreaterThan( 1000000, preg_replace( '/\D/', '', file_get_contents( $wgDebugLogFile ) ) ); unlink( $wgDebugLogFile ); $wgDebugLogFile = $old_log_file;