]> git.vpit.fr Git - perl/modules/Variable-Magic.git/blobdiff - t/16-huf.t
Update VPIT::TestHelpers to e8344578
[perl/modules/Variable-Magic.git] / t / 16-huf.t
index af9e74022a62ef2513bc2731c114f18ccd364f49..024a39c9bb32ad90c71d2e6d571213b3cb8c01e0 100644 (file)
@@ -5,24 +5,18 @@ use warnings;
 
 use Test::More;
 
-use Variable::Magic qw<wizard cast dispell VMG_UVAR>;
+use lib 't/lib';
+use VPIT::TestHelpers;
 
-if (!VMG_UVAR) {
- plan skip_all => 'No nice uvar magic for this perl';
-}
+use Variable::Magic qw<wizard cast dispell VMG_UVAR>;
 
-{
- 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'
- }
+if (VMG_UVAR) {
+ load_or_skip_all('Hash::Util::FieldHash', undef, [ ]);
+ 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<fetch store> ], 'huf';