From: Vincent Pit Date: Wed, 11 Nov 2015 13:45:35 +0000 (-0200) Subject: Don't silence compilation errors when loading the parser class X-Git-Tag: v1.16~13 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=d487631f95c032febc6d5ccad1a64b087e8b7184;p=perl%2Fmodules%2FTest-Valgrind.git Don't silence compilation errors when loading the parser class --- diff --git a/lib/Test/Valgrind/Tool/memcheck.pm b/lib/Test/Valgrind/Tool/memcheck.pm index b86d1e7..5adf933 100644 --- a/lib/Test/Valgrind/Tool/memcheck.pm +++ b/lib/Test/Valgrind/Tool/memcheck.pm @@ -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; }