X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F34-glob.t;h=2e1a441a56b3c9cb10e5825cf5a1d8af4bb26339;hb=82dde567fe6ace7774ceec15edeb513dc5f287e8;hp=1fe3df7b2cbc2b6030fcbecf19bec05c7af7a862;hpb=22768b2c966463cd2574d2f7f7ea5c1cf494456b;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/t/34-glob.t b/t/34-glob.t index 1fe3df7..2e1a441 100644 --- a/t/34-glob.t +++ b/t/34-glob.t @@ -5,14 +5,14 @@ use warnings; use Test::More; +use lib 't/lib'; +use VPIT::TestHelpers; + BEGIN { - local $@; - if (eval "use Symbol qw; 1") { - plan tests => 2 * 17 + 1; - defined and diag "Using Symbol $_" for $Symbol::VERSION; - } else { - plan skip_all => "Symbol::gensym required for testing magic for globs"; - } + load_or_skip('Symbol', undef, [ 'gensym' ], + 'required for testing magic for globs'); + + plan tests => 2 * 17 + 1; } use Variable::Magic qw;