From: Vincent Pit Date: Tue, 9 Sep 2008 22:01:35 +0000 (+0200) Subject: Better wrap XSLoader in an eval STRING so that it does its jobs at run time X-Git-Tag: v0.06~2 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=cb1a72bfb539b0dbb8d56a24d77bfc23d935e397;p=perl%2Fmodules%2FTest-Valgrind.git Better wrap XSLoader in an eval STRING so that it does its jobs at run time --- diff --git a/t/30-bad.t b/t/30-bad.t index a86ccbb..2237a7e 100644 --- a/t/30-bad.t +++ b/t/30-bad.t @@ -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 {