Skip a Data::Dumper test if configured without B module.
Marcus Holland-Moritz [Mon, 30 Aug 2004 18:33:27 +0000 (18:33 +0000)]
p4raw-id: //depot/perl@23244

ext/Data/Dumper/t/dumper.t

index 340a539..35b97b2 100755 (executable)
@@ -965,7 +965,11 @@ TEST q(Data::Dumper->new([[$c, $d]])->Dumpxs;)
 #        };
 EOT
 
-  TEST q(Data::Dumper->new([{ foo => sub { print "foo"; } }])->Dump);
+  if(" $Config{'extensions'} " !~ m[ B ]) {
+    SKIP_TEST "Perl configured without B module";
+  } else {
+    TEST q(Data::Dumper->new([{ foo => sub { print "foo"; } }])->Dump);
+  }
 }
 
 ############# 214