Remaining nit in the deparsing of reversed foreach loops
[p5sagit/p5-mst-13.2.git] / ext / B / t / o.t
index 55a5364..b8b4349 100644 (file)
@@ -3,6 +3,11 @@
 BEGIN {
        chdir 't' if -d 't';
        @INC = ('../lib', 'lib', '.');
+       require Config;
+       if (($Config::Config{'extensions'} !~ /\bB\b/) ){
+               print "1..0 # Skip -- Perl configured without B module\n";
+               exit 0;
+       }
        require 'test.pl';
 }
 
@@ -60,6 +65,7 @@ sub get_lines {
 
 END {
        1 while unlink($file);
+       rmdir($path); # not "1 while" since there might be more in there
 }
 
 __END__