diff options
-rwxr-xr-x | t/01-test.t | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |