summaryrefslogtreecommitdiff
path: root/t/op
diff options
context:
space:
mode:
authorMichael G. Schwern <schwern@pobox.com>2001-12-09 19:53:16 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2001-12-10 13:31:38 +0000
commita67499e8bd4537ee7be409ff29a79a4d2a1b13c6 (patch)
treef330ec802096b057664ec04fda5f9932d05d262a /t/op
parent6ed0706616d0d46b48e5f4d22623268ff6746c12 (diff)
downloadperl-a67499e8bd4537ee7be409ff29a79a4d2a1b13c6.tar.gz
(retracted by #13597, #13593 does the job better)
Subject: [PATCH t/op/stat.t] -B/-T Cygwin fix Message-ID: <20011210055316.GA1770@blackrider> p4raw-id: //depot/perl@13596
Diffstat (limited to 't/op')
-rwxr-xr-xt/op/stat.t5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/op/stat.t b/t/op/stat.t
index 79f9e29d1a..d91506117d 100755
--- a/t/op/stat.t
+++ b/t/op/stat.t
@@ -309,6 +309,11 @@ SKIP: {
ok(-T 'op/stat.t', '-T');
ok(! -B 'op/stat.t', '!-B');
+# Its like this. stat on Cygwin treats 'perl' to mean 'perl.exe'. So
+# all the file test operators work that way except -B and -T which
+# has to actually open the file. open doesn't do the .exe magic.
+$Perl .= $Config{_exe} if $Is_Cygwin and $Perl !~ /$Config{_exe}$/;
+
ok(-B $Perl, '-B');
ok(! -T $Perl, '!-T');