]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/commitdiff
Don't silence compilation errors when loading the parser class
authorVincent Pit <perl@profvince.com>
Wed, 11 Nov 2015 13:45:35 +0000 (11:45 -0200)
committerVincent Pit <perl@profvince.com>
Thu, 12 Nov 2015 15:13:28 +0000 (13:13 -0200)
lib/Test/Valgrind/Tool/memcheck.pm

index b86d1e7c73c3d3e992c4644ae860d09e263d18af..5adf933981d2fb5fbd50707ee495ff86ffb2fc02 100644 (file)
@@ -97,8 +97,10 @@ sub parser_class {
            ? 'Test::Valgrind::Parser::Suppressions::Text'
            : 'Test::Valgrind::Parser::XML::Twig';
 
- local $@;
- eval "require $class";
+ {
+  local $@;
+  eval "require $class; 1" or die $@;
+ }
 
  return $class;
 }