From 0eafefb944581c3c9e208d6eabae4d98bcbb20fa Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Sat, 2 Jan 2016 20:57:45 +0100 Subject: Since we chdir() __FILE__ doesn't work. Use FindBin's $RealScript instead. --- t/01-test.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 't') diff --git a/t/01-test.t b/t/01-test.t index 2816a59..f1f9117 100755 --- a/t/01-test.t +++ b/t/01-test.t @@ -8,7 +8,7 @@ use Test::More; use Test::Output; use File::Copy; use Text::Diff; -use FindBin '$RealBin'; +use FindBin '$RealBin', '$RealScript'; BEGIN { chdir($RealBin); @@ -44,7 +44,7 @@ is($config{LOCAL_OVERRIDES}, 'FALSE', 'config{LOCAL_OVERRIDES} is good'); # 7: open_read, open_fh tests { - my $fh = open_read(__FILE__); + my $fh = open_read($RealScript); is(ref $fh, 'GLOB', 'open_read works'); close $fh; } -- cgit v1.2.3