Re: -P and Incredible Disappearing $Config{cppstdin} (was Re: perl@13385)
authorAndy Dougherty <doughera@lafayette.edu>
Fri, 30 Nov 2001 13:49:48 +0000 (08:49 -0500)
committerJarkko Hietaniemi <jhi@iki.fi>
Fri, 30 Nov 2001 20:26:22 +0000 (20:26 +0000)
Message-ID: <Pine.SOL.4.10.10111301304220.13302-100000@maxwell.phys.lafayette.edu>

Simplify the test skippage criterion now that we are
no more dependent on sed.

p4raw-id: //depot/perl@13392

t/comp/cpp.t
t/run/switchPx.t

index e80ce33..44eeea4 100755 (executable)
@@ -8,9 +8,8 @@ BEGIN {
 }
 
 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.
 }
index 6550802..009fc49 100644 (file)
@@ -7,11 +7,10 @@ BEGIN {
     @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.
     }
 }