Skip to content

Commit

Permalink
Item2286: This one test uses up several hundred meg and that is only …
Browse files Browse the repository at this point in the history
…reclaimed at the end of the tests. I am making it run in a separate process so that we can reclaim that memory immediately.

I am not sure what causes the huge memory consumption. There may be a memory leak - I do not know. This is a bandaid so that running the tests is less painful on low-resource machines.


git-svn-id: http://svn.foswiki.org/trunk@8525 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
MichaelTempest authored and MichaelTempest committed Aug 17, 2010
1 parent 8f9953d commit 46e29d7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions UnitTestContrib/test/unit/Fn_SEARCH.pm
Expand Up @@ -22,6 +22,14 @@ sub new {
return $self;
}

# This particular test makes perl chew several hundred megabytes underl 5.10.0
# Devel::Leak::Object does not report any particular problems with this test.
# This test is run in a separate process to be able to reclaim that memory
# after the test is complete.
sub run_in_new_process {
return 1;
}

sub set_up {
my $this = shift;

Expand Down

0 comments on commit 46e29d7

Please sign in to comment.