X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F02-pp.t;h=c4df852a313e560d01f021fe70bd7c8d68704c69;hb=refs%2Ftags%2Fv0.04;hp=92ee0c865a27691ea90b9aee4d80ba9cf0c20d64;hpb=cf377929a69f04623e2104bb4b2a7ed7ce467072;p=perl%2Fmodules%2FScalar-Vec-Util.git diff --git a/t/02-pp.t b/t/02-pp.t index 92ee0c8..c4df852 100644 --- a/t/02-pp.t +++ b/t/02-pp.t @@ -3,9 +3,16 @@ use strict; use warnings; +use Config qw/%Config/; + use Test::More tests => 4; -BEGIN { @INC = grep !/arch$/, @INC } +BEGIN { + my $re = join '|', + grep defined && length, + @Config{qw/myarchname archname/}, 'arch'; + @INC = grep !/(?:$re)$/, @INC +} use Scalar::Vec::Util qw/vfill vcopy veq SVU_PP/; is(SVU_PP, 1, 'using pure perl subroutines');