From 167eda42ab619f7572fbc3a5f07158bdcf9d4279 Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Sat, 2 Jan 2016 20:52:01 +0100 Subject: Use __FILE__ constant instead of "./test.t" when trying to open a file --- t/01-test.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/01-test.t b/t/01-test.t index ee7e1fb..2816a59 100755 --- a/t/01-test.t +++ b/t/01-test.t @@ -44,7 +44,7 @@ is($config{LOCAL_OVERRIDES}, 'FALSE', 'config{LOCAL_OVERRIDES} is good'); # 7: open_read, open_fh tests { - my $fh = open_read('./test.t'); + my $fh = open_read(__FILE__); is(ref $fh, 'GLOB', 'open_read works'); close $fh; } -- cgit v1.2.3