XSLoader::load('Test::Valgrind', \$Test::Valgrind::VERSION);
";
if ($@) {
+ my $err = $@;
$dbg = 0;
+ chomp $err;
+ diag "XS test code not available ($err)";
} else {
my $ret = eval "Test::Valgrind::DEBUGGING()";
$dbg = $@ ? 0 : $ret;
require XSLoader;
XSLoader::load('Test::Valgrind', \$Test::Valgrind::VERSION);
";
- if ($@) {
- diag $@;
- plan skip_all => "XS test code not available";
- } else {
+ unless ($@) {
Test::Valgrind::leak();
}
}