Change 13392 by jhi@alpha on 2001/11/30 20:26:22
Subject: Re: -P and Incredible Disappearing $Config{cppstdin} (was Re:
perl@13385)
From: Andy Dougherty <[EMAIL PROTECTED]>
Date: Fri, 30 Nov 2001 13:49:48 -0500 (EST)
Message-ID:
<[EMAIL PROTECTED]>
Simplify the test skippage criterion now that we are
no more dependent on sed.
Affected files ...
.... //depot/perl/t/comp/cpp.t#12 edit
.... //depot/perl/t/run/switchPx.t#3 edit
Differences ...
==== //depot/perl/t/comp/cpp.t#12 (xtext) ====
Index: perl/t/comp/cpp.t
--- perl/t/comp/cpp.t.~1~ Fri Nov 30 13:30:05 2001
+++ perl/t/comp/cpp.t Fri Nov 30 13:30:05 2001
@@ -8,9 +8,8 @@
}
use Config;
-if ( $^O eq 'MSWin32' or $^O eq 'MacOS' or
- ($Config{'cppstdin'} =~ /\bcppstdin\b/) and
- ( ! -x $Config{'binexp'} . "/cppstdin") ) {
+if ( ($Config{'cppstdin'} =~ /\bcppstdin\b/) &&
+ ! -x $Config{'binexp'} . "/cppstdin" ) {
print "1..0 # Skip: \$Config{cppstdin} unavailable\n";
exit; # Cannot test till after install, alas.
}
==== //depot/perl/t/run/switchPx.t#3 (text) ====
Index: perl/t/run/switchPx.t
--- perl/t/run/switchPx.t.~1~ Fri Nov 30 13:30:05 2001
+++ perl/t/run/switchPx.t Fri Nov 30 13:30:05 2001
@@ -7,11 +7,10 @@
@INC = '../lib';
use Config;
- if ( $^O eq 'MSWin32' or $^O eq 'MacOS' or
- ($Config{'cppstdin'} =~ /\bcppstdin\b/) and
- ( ! -x $Config{'binexp'} . "/cppstdin") ) {
+ if ( ($Config{'cppstdin'} =~ /\bcppstdin\b/) &&
+ ! -x $Config{'binexp'} . "/cppstdin" ) {
print "1..0 # Skip: \$Config{cppstdin} unavailable\n";
- exit; # Cannot test till after install, alas.
+ exit; # Cannot test till after install, alas.
}
}
End of Patch.