X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F16-huf.t;h=af9e74022a62ef2513bc2731c114f18ccd364f49;hb=788d90465f0c4180f7b27d63f355bbf260ecb972;hp=32f767770749e8bd8fe41f33397652d8ffff6c77;hpb=c88c00773bfc576b07eafbc794cdb3ab2b0c670d;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/t/16-huf.t b/t/16-huf.t index 32f7677..af9e740 100644 --- a/t/16-huf.t +++ b/t/16-huf.t @@ -11,13 +11,15 @@ if (!VMG_UVAR) { plan skip_all => 'No nice uvar magic for this perl'; } -eval "use Hash::Util::FieldHash"; -if ($@) { - plan skip_all => 'Hash::Util::FieldHash required for testing uvar interaction'; -} else { - plan tests => 2 * 5 + 7 + 1; - defined and diag "Using Hash::Util::FieldHash $_" +{ + local $@; + if (eval { require Hash::Util::FieldHash; 1 }) { + plan tests => 2 * 5 + 7 + 1; + defined and diag "Using Hash::Util::FieldHash $_" for $Hash::Util::FieldHash::VERSION; + } else { + plan skip_all => 'Hash::Util::FieldHash required for testing uvar interaction' + } } use lib 't/lib';