diff options
author | Eric Wong <e@80x24.org> | 2019-02-02 07:35:06 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-02-05 10:58:35 +0000 |
commit | 8eb2c4f7c0aed11810280c6dfa63f75fd961e3cd (patch) | |
tree | 8544eeb37994389de4bde873bb9d023d2cb465ba /t/hl_mod.t | |
parent | 58db2bbcbc9836fe36c91eff761e31edfd53f866 (diff) | |
download | public-inbox-8eb2c4f7c0aed11810280c6dfa63f75fd961e3cd.tar.gz |
It turns out there's no point in having multiple instances of this or having to worry about destruction or destruction ordering. This will make it easier to reuse the one instance we have across different modules.
Diffstat (limited to 't/hl_mod.t')
-rw-r--r-- | t/hl_mod.t | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -40,19 +40,4 @@ my $orig = $str; } } -my $nr = $ENV{TEST_MEMLEAK}; -if ($nr && -r "/proc/$$/status") { - my $fh; - open $fh, '<', "/proc/$$/status"; - diag "starting at memtest at ".join('', grep(/VmRSS:/, <$fh>)); - PublicInbox::HlMod->new->do_hl(\$orig) for (1..$nr); - open $fh, '<', "/proc/$$/status"; - diag "creating $nr instances: ".join('', grep(/VmRSS:/, <$fh>)); - my $hls = PublicInbox::HlMod->new; - $hls->do_hl(\$orig) for (1..$nr); - $hls = undef; - open $fh, '<', "/proc/$$/status"; - diag "reused instance $nr times: ".join('', grep(/VmRSS:/, <$fh>)); -} - done_testing; |