diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-11-20 20:17:13 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-11-20 20:17:13 +0000 |
commit | e993235624b459fbafc38390ba5ac81cb1c635b9 (patch) | |
tree | a0d52c024035e065f0ed7fceec2f461032b5d6f4 /t | |
parent | 758a08c30aea50da395b8956fd114bbcb2c519a0 (diff) | |
parent | 04fee9b5a11624a5e33d02ff7b7129631d312bd9 (diff) | |
download | perl-e993235624b459fbafc38390ba5ac81cb1c635b9.tar.gz |
Integrate perlio:
[ 13138]
perl.c change to use HAS_PROCSELFEXE, also
tweak to $^X test to comprehend full path to real executable
being returned (like Cygwin as it happens...)
p4raw-link: @13138 on //depot/perlio: 04fee9b5a11624a5e33d02ff7b7129631d312bd9
p4raw-id: //depot/perl@13140
Diffstat (limited to 't')
-rwxr-xr-x | t/op/magic.t | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/t/op/magic.t b/t/op/magic.t index 73dc8a6216..4e47414ae0 100755 --- a/t/op/magic.t +++ b/t/op/magic.t @@ -8,6 +8,7 @@ BEGIN { } use warnings; +use Config; my $test = 1; sub ok { @@ -71,7 +72,7 @@ if ($Is_MSWin32 || $Is_NetWare || $Is_Dos || $Is_MPE || $Is_MacOS) { else { # the next tests are done in a subprocess because sh spits out a # newline onto stderr when a child process kills itself with SIGINT. - # We use a pipe rather than system() because the VMS command buffer + # We use a pipe rather than system() because the VMS command buffer # would overflow with a command that long. open( CMDPIPE, "| $PERL"); @@ -148,7 +149,7 @@ ok $$ > 0, $$; if ($^O eq 'qnx') { chomp($wd = `/usr/bin/fullpath -t`); } - elsif($Is_Cygwin) { + elsif($Is_Cygwin || $Config{'d_procselfexe'}) { # Cygwin turns the symlink into the real file chomp($wd = `pwd`); $wd =~ s#/t$##; |