summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-11-20 20:17:13 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-11-20 20:17:13 +0000
commite993235624b459fbafc38390ba5ac81cb1c635b9 (patch)
treea0d52c024035e065f0ed7fceec2f461032b5d6f4 /t
parent758a08c30aea50da395b8956fd114bbcb2c519a0 (diff)
parent04fee9b5a11624a5e33d02ff7b7129631d312bd9 (diff)
downloadperl-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-xt/op/magic.t5
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$##;