From 1b2cf9d6be69e73d0bf29c90c560c5c7afe4fceb Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Fri, 30 Nov 2001 14:00:55 +0000 Subject: [PATCH] Cannot test if cppstdin has not yet been installed. p4raw-id: //depot/perl@13384 --- t/run/switchPx.t | 8 ++++++++ 1 file changed, 8 insertions(+) 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'; -- 2.7.4