]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/commitdiff
Better wrap XSLoader in an eval STRING so that it does its jobs at run time
authorVincent Pit <vince@profvince.com>
Tue, 9 Sep 2008 22:01:35 +0000 (00:01 +0200)
committerVincent Pit <vince@profvince.com>
Tue, 9 Sep 2008 22:01:35 +0000 (00:01 +0200)
t/30-bad.t

index a86ccbb126b2b3f1ed348aac837dbec4b5c9a744..2237a7e47f425a986e48c177a8da26cb6c6b72cc 100644 (file)
@@ -29,10 +29,10 @@ sub tester {
  return $passed;
 }
 
-eval {
+eval "
  require XSLoader;
  XSLoader::load('Test::Valgrind', 0.051);
-};
+";
 if ($@) {
  plan skip_all => "XS test code not available ($@)";
 } else {