summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2001-11-20 20:01:05 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2001-11-20 20:01:05 +0000
commit04fee9b5a11624a5e33d02ff7b7129631d312bd9 (patch)
tree92746bb9dcf4644a56ca66dc2cbac6204dd4fb69 /t
parent14300607918605648b68b2bcd08ef8d19aab8688 (diff)
downloadperl-04fee9b5a11624a5e33d02ff7b7129631d312bd9.tar.gz
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-id: //depot/perlio@13138
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$##;