diff options
author | Eric Wong <e@80x24.org> | 2021-03-25 06:20:17 +0200 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-03-25 17:58:54 +0000 |
commit | d0ec7d8ddb8cb00dfb8372eaf8f5374be5e49460 (patch) | |
tree | 00c1d31f12713e401bf35049f753bcb165636f40 /lib/PublicInbox/TestCommon.pm | |
parent | 69175b02c000d3ff5f03e5a88701468f121af4b6 (diff) | |
download | public-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.pm | 1 |
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; } |