From: Jarkko Hietaniemi Date: Fri, 30 Nov 2001 14:00:55 +0000 (+0000) Subject: Cannot test if cppstdin has not yet been installed. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1b2cf9d6be69e73d0bf29c90c560c5c7afe4fceb;p=p5sagit%2Fp5-mst-13.2.git Cannot test if cppstdin has not yet been installed. p4raw-id: //depot/perl@13384 --- diff --git a/t/run/switchPx.t b/t/run/switchPx.t index 0f029a7..6550802 100644 --- a/t/run/switchPx.t +++ b/t/run/switchPx.t @@ -5,6 +5,14 @@ BEGIN { chdir 't' if -d 't'; @INC = '../lib'; + + use Config; + if ( $^O eq 'MSWin32' or $^O eq 'MacOS' or + ($Config{'cppstdin'} =~ /\bcppstdin\b/) and + ( ! -x $Config{'binexp'} . "/cppstdin") ) { + print "1..0 # Skip: \$Config{cppstdin} unavailable\n"; + exit; # Cannot test till after install, alas. + } } require './test.pl';