• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

When running unit tests for the whole TWikiSuite.pm, my tests crash with a memory fault after the process has grown to some 130MB.

That's the same thing as Item2158, only that the cure needs to be applied to most test suites:

Many unit tests create a TWiki->new() during their set_up routine, i.e. repeatedly for each test. But we know since Item2158 that TWiki objects contain circular references, so they need to be properly destroyed.

The easiest way would be to call $twiki->finish() during the tear_down() routine in all those packages which create the object during set_up().


Aaargh. Many test cases create new TWiki objects on the fly, or TWiki->new(). I give up after having reduced RAM to <100MB for TWikiSuite.pm on my machine, so I can run the suite. Feel free to investigate and provide further patches, otherwise I'll close the item in a week or so.

haj


No further checkins, closing. -- haj

ItemTemplate
Summary Unit tests leak memory
ReportedBy TWiki:Main.HaraldJoerg
Codebase ~twiki4
SVN Range TWiki-4.1, Thu, 05 Oct 2006, build 11664
AppliesTo Engine
Component BuildScripts
Priority Normal
CurrentState Closed
WaitingFor

Checkins 11679
TargetRelease n/a
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r5 - 2006-11-13 - HaraldJoerg
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback