sbotools2

Maintenance fork of the original sbotools version 2
Log | Files | Refs | README

commit 0eafefb944581c3c9e208d6eabae4d98bcbb20fa
parent 167eda42ab619f7572fbc3a5f07158bdcf9d4279
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date:   Sat,  2 Jan 2016 20:57:45 +0100

Since we chdir() __FILE__ doesn't work. Use FindBin's $RealScript instead.

Diffstat:
Mt/01-test.t | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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; }