X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F16-huf.t;fp=t%2F16-huf.t;h=0f9215c689a217f38af86d135a516ae8ed3bc179;hb=82dde567fe6ace7774ceec15edeb513dc5f287e8;hp=af9e74022a62ef2513bc2731c114f18ccd364f49;hpb=22768b2c966463cd2574d2f7f7ea5c1cf494456b;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/t/16-huf.t b/t/16-huf.t index af9e740..0f9215c 100644 --- a/t/16-huf.t +++ b/t/16-huf.t @@ -7,22 +7,17 @@ use Test::More; use Variable::Magic qw; -if (!VMG_UVAR) { - plan skip_all => 'No nice uvar magic for this perl'; -} - -{ - 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'; +use VPIT::TestHelpers; + +if (VMG_UVAR) { + load_or_skip('Hash::Util::FieldHash', undef, [ ], + 'required for testing uvar interaction'); + plan tests => 2 * 5 + 7 + 1; +} else { + skip_all 'No nice uvar magic for this perl'; } -use lib 't/lib'; use Variable::Magic::TestWatcher; my $wiz = init_watcher [ qw ], 'huf';