[patch] more about embed.fnc in perlguts
[p5sagit/p5-mst-13.2.git] / t / run / switchPx.t
index 0f029a7..72b068f 100644 (file)
@@ -5,6 +5,14 @@
 BEGIN {
     chdir 't' if -d 't';
     @INC = '../lib';
+    $ENV{PERL5LIB} = '../lib';
+
+    use Config;
+    if ( $^O eq 'MacOS' || ($Config{'cppstdin'} =~ /\bcppstdin\b/) &&
+        ! -x $Config{'binexp'} . "/cppstdin" ) {
+       print "1..0 # Skip: \$Config{cppstdin} unavailable\n";
+           exit;               # Cannot test till after install, alas.
+    }
 }
 
 require './test.pl';