diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-01-02 20:52:01 +0100 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-01-02 20:52:01 +0100 |
commit | 167eda42ab619f7572fbc3a5f07158bdcf9d4279 (patch) | |
tree | 5bdb5e90b78b749f3dbb697a27f32b122fa4995d /t/01-test.t | |
parent | a605927dc5ae1e3a697cef2829be4e63af526645 (diff) | |
download | sbotools2-167eda42ab619f7572fbc3a5f07158bdcf9d4279.tar.xz |
Use __FILE__ constant instead of "./test.t" when trying to open a file
Diffstat (limited to 't/01-test.t')
-rwxr-xr-x | t/01-test.t | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |