X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F28-uvar.t;h=4c6d9024f8770ec97af40eb9c7dad94598af859a;hb=93df7812b9a0da8cdfa57a107eb2f8f4b4744b49;hp=0eaf00130eba5b5efc0c3566e6bb283ed650d053;hpb=3bc98bdbdb230943e7fb3135e325f10013acac2d;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/t/28-uvar.t b/t/28-uvar.t index 0eaf001..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,9 +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: { - eval "use Tie::Hash"; - skip 'Tie::Hash required to test uvar magic on tied hashes' => 2 * 5 + 4 if $@; - 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);