diff options
author | Nicholas Clark <nick@ccl4.org> | 2010-09-01 21:24:54 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2010-09-01 21:24:54 +0100 |
commit | 11ce4a763a0bb03971d6097fecf93928e61db557 (patch) | |
tree | 8504b0b4a495922154e0a966944b7d18a79ae710 /t | |
parent | 463cf0628d7a451d99106f7101151d3a9b97fcbf (diff) | |
download | perl-11ce4a763a0bb03971d6097fecf93928e61db557.tar.gz |
t/lib/common.pl must convert $^X to an absolute path before changing directory.
Not every operating system has /proc/self/exe
Diffstat (limited to 't')
-rw-r--r-- | t/lib/common.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/lib/common.pl b/t/lib/common.pl index 7c98b13c70..5e28fc0738 100644 --- a/t/lib/common.pl +++ b/t/lib/common.pl @@ -11,7 +11,7 @@ BEGIN { use Config; use File::Path; -use File::Spec::Functions; +use File::Spec::Functions qw(catfile curdir rel2abs); use strict; use warnings; @@ -55,6 +55,7 @@ foreach my $file (@w_files) { close F ; } +$^X = rel2abs($^X); my $tempdir = tempfile; mkdir $tempdir, 0700 or die "Can't mkdir '$tempdir': $!"; |