]> git.vpit.fr Git - perl/modules/Scalar-Vec-Util.git/blobdiff - t/02-pp.t
Importing Scalar-Vec-Util-0.04.tar.gz
[perl/modules/Scalar-Vec-Util.git] / t / 02-pp.t
index 92ee0c865a27691ea90b9aee4d80ba9cf0c20d64..c4df852a313e560d01f021fe70bd7c8d68704c69 100644 (file)
--- 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');