]> git.vpit.fr Git - perl/modules/Scalar-Vec-Util.git/blobdiff - t/02-pp.t
Importing Scalar-Vec-Util-0.05.tar.gz
[perl/modules/Scalar-Vec-Util.git] / t / 02-pp.t
index 92ee0c865a27691ea90b9aee4d80ba9cf0c20d64..a4d5f0faf6443aa062e4d5e64e4467b677acac30 100644 (file)
--- a/t/02-pp.t
+++ b/t/02-pp.t
@@ -3,10 +3,20 @@
 use strict;
 use warnings;
 
+use Config qw/%Config/;
+
 use Test::More tests => 4;
 
-BEGIN { @INC = grep !/arch$/, @INC }
-use Scalar::Vec::Util qw/vfill vcopy veq SVU_PP/;
+BEGIN {
+ my $re = join '|',
+           grep defined && length,
+            @Config{qw/myarchname archname/}, 'arch';
+ my @inc = @INC;
+ @INC = grep !/(?:$re)$/, @INC;
+ require Scalar::Vec::Util;
+ Scalar::Vec::Util->import(qw/vfill vcopy veq SVU_PP/);
+ @INC = @inc;
+}
 
 is(SVU_PP, 1, 'using pure perl subroutines');
 for (qw/vfill vcopy veq/) {