X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FVariable-Magic.git;a=blobdiff_plain;f=t%2F28-uvar.t;h=4c6d9024f8770ec97af40eb9c7dad94598af859a;hp=d44f9f1f0b38ad3ff17446eef7ab53b6b7a9e0c3;hb=93df7812b9a0da8cdfa57a107eb2f8f4b4744b49;hpb=fceb925d08fa5e96cf477963195c3c4f6dbede65 diff --git a/t/28-uvar.t b/t/28-uvar.t index d44f9f1..4c6d902 100644 --- a/t/28-uvar.t +++ b/t/28-uvar.t @@ -5,6 +5,9 @@ use warnings; use Test::More; +use lib 't/lib'; +use VPIT::TestHelpers; + use Variable::Magic qw; if (VMG_UVAR) { @@ -51,10 +54,7 @@ $x = watch { $h{a} } { fetch => 1 }, 'fetch directly with also non uvar magic'; is $x, 1, 'uvar: fetch directly with also non uvar magic correctly'; SKIP: { - my $has_tie_hash = do { local $@; eval { require Tie::Hash; 1 } }; - skip 'Tie::Hash required to test uvar magic on tied hashes' - => 2 * 5 + 4 unless $has_tie_hash; - defined and diag "Using Tie::Hash $_" for $Tie::Hash::VERSION; + load_or_skip('Tie::Hash', undef, undef, 2 * 5 + 4); tie my %h, 'Tie::StdHash'; %h = (x => 7, y => 8);