From: Brion Vibber Date: Thu, 3 Sep 2009 22:44:28 +0000 (+0000) Subject: Hopefully reduce memory leaks in parser tests... now clearing $wgOut on each run! X-Git-Tag: 1.31.0-rc.0~39952 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=6744acb00c53d23f86dcb7fefae427aaca88e939;p=lhc%2Fweb%2Fwiklou.git Hopefully reduce memory leaks in parser tests... now clearing $wgOut on each run! Also fixed a test case for category links with language variants, which was testing the wrong link as revealed after this fix. --- diff --git a/maintenance/parserTests.inc b/maintenance/parserTests.inc index 6a5ffdd733..924310a420 100644 --- a/maintenance/parserTests.inc +++ b/maintenance/parserTests.inc @@ -676,6 +676,7 @@ class ParserTest { $GLOBALS['wgLang'] = $langObj; $GLOBALS['wgContLang'] = $langObj; $GLOBALS['wgMemc'] = new FakeMemCachedClient; + $GLOBALS['wgOut'] = new OutputPage; //$GLOBALS['wgMessageCache'] = new MessageCache( new BagOStuff(), false, 0, $GLOBALS['wgDBname'] ); diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt index 8359126272..daa3e683ac 100644 --- a/maintenance/parserTests.txt +++ b/maintenance/parserTests.txt @@ -6818,9 +6818,9 @@ Simple category in language variants !! options language=sr cat !! input -[[:Category:МедиаWики Усер'с Гуиде]] +[[Category:МедиаWики Усер'с Гуиде]] !! result -MediaWiki User's Guide +MediaWiki User's Guide !! end