about summary refs log tree commit homepage
path: root/lib/PublicInbox/TestCommon.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-03-25 06:20:17 +0200
committerEric Wong <e@80x24.org>2021-03-25 17:58:54 +0000
commitd0ec7d8ddb8cb00dfb8372eaf8f5374be5e49460 (patch)
tree00c1d31f12713e401bf35049f753bcb165636f40 /lib/PublicInbox/TestCommon.pm
parent69175b02c000d3ff5f03e5a88701468f121af4b6 (diff)
downloadpublic-inbox-d0ec7d8ddb8cb00dfb8372eaf8f5374be5e49460.tar.gz
This stops us from leaking some more file handles across
test cases.
Diffstat (limited to 'lib/PublicInbox/TestCommon.pm')
-rw-r--r--lib/PublicInbox/TestCommon.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm
index d4117b6c..e127970e 100644
--- a/lib/PublicInbox/TestCommon.pm
+++ b/lib/PublicInbox/TestCommon.pm
@@ -291,6 +291,7 @@ sub run_script ($;$$) {
                 local $0 = join(' ', @$cmd);
                 my $orig_io = _prepare_redirects($fhref);
                 _run_sub($sub, $key, \@argv);
+                eval { PublicInbox::Inbox::cleanup_task() };
                 _undo_redirects($orig_io);
                 select STDOUT;
         }