Fix ext\B\t\concise.t when building with ALL_STATIC=define on Windows
authorSteve Hay <steve.m.hay@googlemail.com>
Tue, 18 Jun 2013 08:33:08 +0000 (09:33 +0100)
committerSteve Hay <steve.m.hay@googlemail.com>
Tue, 18 Jun 2013 11:59:12 +0000 (12:59 +0100)
Skip testing that Data::Dumper is loaded as needed when it is statically
linked.

ext/B/t/concise.t

index ec911a0..b945e56 100644 (file)
@@ -413,8 +413,12 @@ like($out, qr/FUNC: \*ExtUtils::Mksymlists::_write_vms/,
 $out = runperl ( switches => ["-MO=Concise,-stash=Data::Dumper,-src,-exec"],
                 prog => '-e 1', stderr => 1 );
 
-like($out, qr/FUNC: \*Data::Dumper::format_refaddr/,
-     "stash rendering loads package as needed");
+SKIP: {
+    skip "Data::Dumper is statically linked", 1
+       if $Config{static_ext} =~ m|\bData/Dumper\b|;
+    like($out, qr/FUNC: \*Data::Dumper::format_refaddr/,
+       "stash rendering loads package as needed");
+}
 
 my $prog = q{package FOO; sub bar { print q{bar} } package main; FOO::bar(); };