Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions t/fh-ref-leak.t
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ use Test2::Tools::Explain;
use Scalar::Util qw(weaken);
use Socket;

use Overload::FileCheck ();

# Overload::FileCheck < 0.014 caches filehandle refs in $_last_call_for,
# preventing garbage collection. The fix (PR #25) landed in 0.014.
skip_all "Overload::FileCheck >= 0.014 required (have $Overload::FileCheck::VERSION)"
if $Overload::FileCheck::VERSION < 0.014;

use Test::MockFile qw< nostrict >;

# Test 1: Filehandle passed to -f is not retained
Expand Down
Loading