summaryrefslogtreecommitdiff
path: root/t/lib
diff options
context:
space:
mode:
authorPeter Prymmer <PPrymmer@factset.com>2001-04-19 10:40:14 -0700
committerJarkko Hietaniemi <jhi@iki.fi>2001-04-20 13:19:33 +0000
commit6b05f64e30c9e1ca25212fcc7e6306f789778833 (patch)
tree51f2ba46cef1bf6299548e8597cf69013da872a0 /t/lib
parent376b794b180b45276f651a11960417bbf60ef2d6 (diff)
downloadperl-6b05f64e30c9e1ca25212fcc7e6306f789778833.tar.gz
avoid t/u-*.t test on platforms where List/Util was not built
Message-ID: <Pine.OSF.4.10.10104191737200.348917-100000@aspara.forte.com> p4raw-id: //depot/perl@9764
Diffstat (limited to 't/lib')
-rwxr-xr-xt/lib/u-blessed.t5
-rwxr-xr-xt/lib/u-dualvar.t5
-rwxr-xr-xt/lib/u-first.t5
-rwxr-xr-xt/lib/u-max.t5
-rwxr-xr-xt/lib/u-maxstr.t5
-rwxr-xr-xt/lib/u-min.t5
-rwxr-xr-xt/lib/u-minstr.t5
-rw-r--r--t/lib/u-readonly.t5
-rwxr-xr-xt/lib/u-reduce.t5
-rwxr-xr-xt/lib/u-reftype.t5
-rwxr-xr-xt/lib/u-sum.t5
-rw-r--r--t/lib/u-tainted.t5
-rwxr-xr-xt/lib/u-weak.t5
13 files changed, 65 insertions, 0 deletions
diff --git a/t/lib/u-blessed.t b/t/lib/u-blessed.t
index d70e023b6a..89a740a8cb 100755
--- a/t/lib/u-blessed.t
+++ b/t/lib/u-blessed.t
@@ -1,6 +1,11 @@
BEGIN {
chdir 't' if -d 't';
@INC = '../lib';
+ require Config; import Config;
+ if ($Config{extensions} !~ /\bList\/Util\b/) {
+ print "1..0 # Skip: List::Util was not built\n";
+ exit 0;
+ }
}
use Scalar::Util qw(blessed);
diff --git a/t/lib/u-dualvar.t b/t/lib/u-dualvar.t
index acee8ad91a..5bf4fe95f7 100755
--- a/t/lib/u-dualvar.t
+++ b/t/lib/u-dualvar.t
@@ -1,6 +1,11 @@
BEGIN {
chdir 't' if -d 't';
@INC = '../lib';
+ require Config; import Config;
+ if ($Config{extensions} !~ /\bList\/Util\b/) {
+ print "1..0 # Skip: List::Util was not built\n";
+ exit 0;
+ }
}
BEGIN {
diff --git a/t/lib/u-first.t b/t/lib/u-first.t
index 71f3de41f5..6a35948e95 100755
--- a/t/lib/u-first.t
+++ b/t/lib/u-first.t
@@ -1,6 +1,11 @@
BEGIN {
chdir 't' if -d 't';
@INC = '../lib';
+ require Config; import Config;
+ if ($Config{extensions} !~ /\bList\/Util\b/) {
+ print "1..0 # Skip: List::Util was not built\n";
+ exit 0;
+ }
}
use List::Util qw(first);
diff --git a/t/lib/u-max.t b/t/lib/u-max.t
index f4873bdaa1..911003b92a 100755
--- a/t/lib/u-max.t
+++ b/t/lib/u-max.t
@@ -1,6 +1,11 @@
BEGIN {
chdir 't' if -d 't';
@INC = '../lib';
+ require Config; import Config;
+ if ($Config{extensions} !~ /\bList\/Util\b/) {
+ print "1..0 # Skip: List::Util was not built\n";
+ exit 0;
+ }
}
use List::Util qw(max);
diff --git a/t/lib/u-maxstr.t b/t/lib/u-maxstr.t
index 79646136e1..0ec35cab30 100755
--- a/t/lib/u-maxstr.t
+++ b/t/lib/u-maxstr.t
@@ -1,6 +1,11 @@
BEGIN {
chdir 't' if -d 't';
@INC = '../lib';
+ require Config; import Config;
+ if ($Config{extensions} !~ /\bList\/Util\b/) {
+ print "1..0 # Skip: List::Util was not built\n";
+ exit 0;
+ }
}
use List::Util qw(maxstr);
diff --git a/t/lib/u-min.t b/t/lib/u-min.t
index 124d88a095..a51ced4e3d 100755
--- a/t/lib/u-min.t
+++ b/t/lib/u-min.t
@@ -1,6 +1,11 @@
BEGIN {
chdir 't' if -d 't';
@INC = '../lib';
+ require Config; import Config;
+ if ($Config{extensions} !~ /\bList\/Util\b/) {
+ print "1..0 # Skip: List::Util was not built\n";
+ exit 0;
+ }
}
use List::Util qw(min);
diff --git a/t/lib/u-minstr.t b/t/lib/u-minstr.t
index 12dc2fb476..c000e7856d 100755
--- a/t/lib/u-minstr.t
+++ b/t/lib/u-minstr.t
@@ -1,6 +1,11 @@
BEGIN {
chdir 't' if -d 't';
@INC = '../lib';
+ require Config; import Config;
+ if ($Config{extensions} !~ /\bList\/Util\b/) {
+ print "1..0 # Skip: List::Util was not built\n";
+ exit 0;
+ }
}
use List::Util qw(minstr);
diff --git a/t/lib/u-readonly.t b/t/lib/u-readonly.t
index 50797250ec..864e1f12f2 100644
--- a/t/lib/u-readonly.t
+++ b/t/lib/u-readonly.t
@@ -1,6 +1,11 @@
BEGIN {
chdir 't' if -d 't';
@INC = '../lib';
+ require Config; import Config;
+ if ($Config{extensions} !~ /\bList\/Util\b/) {
+ print "1..0 # Skip: List::Util was not built\n";
+ exit 0;
+ }
}
use Scalar::Util qw(readonly);
diff --git a/t/lib/u-reduce.t b/t/lib/u-reduce.t
index d00dea1533..063e0b791b 100755
--- a/t/lib/u-reduce.t
+++ b/t/lib/u-reduce.t
@@ -1,6 +1,11 @@
BEGIN {
chdir 't' if -d 't';
@INC = '../lib';
+ require Config; import Config;
+ if ($Config{extensions} !~ /\bList\/Util\b/) {
+ print "1..0 # Skip: List::Util was not built\n";
+ exit 0;
+ }
}
use List::Util qw(reduce min);
diff --git a/t/lib/u-reftype.t b/t/lib/u-reftype.t
index 06f9ffb3d0..ea7ea7bbc1 100755
--- a/t/lib/u-reftype.t
+++ b/t/lib/u-reftype.t
@@ -1,6 +1,11 @@
BEGIN {
chdir 't' if -d 't';
@INC = '../lib';
+ require Config; import Config;
+ if ($Config{extensions} !~ /\bList\/Util\b/) {
+ print "1..0 # Skip: List::Util was not built\n";
+ exit 0;
+ }
}
use Scalar::Util qw(reftype);
diff --git a/t/lib/u-sum.t b/t/lib/u-sum.t
index 9c1c7cb6db..34fb69076a 100755
--- a/t/lib/u-sum.t
+++ b/t/lib/u-sum.t
@@ -1,6 +1,11 @@
BEGIN {
chdir 't' if -d 't';
@INC = '../lib';
+ require Config; import Config;
+ if ($Config{extensions} !~ /\bList\/Util\b/) {
+ print "1..0 # Skip: List::Util was not built\n";
+ exit 0;
+ }
}
use List::Util qw(sum);
diff --git a/t/lib/u-tainted.t b/t/lib/u-tainted.t
index c38cf1a0d9..5587bb7bf9 100644
--- a/t/lib/u-tainted.t
+++ b/t/lib/u-tainted.t
@@ -3,6 +3,11 @@
BEGIN {
chdir 't' if -d 't';
@INC = '../lib';
+ require Config; import Config;
+ if ($Config{extensions} !~ /\bList\/Util\b/) {
+ print "1..0 # Skip: List::Util was not built\n";
+ exit 0;
+ }
}
use lib qw(blib/lib blib/arch);
diff --git a/t/lib/u-weak.t b/t/lib/u-weak.t
index bab61973cd..6c7bea7f4d 100755
--- a/t/lib/u-weak.t
+++ b/t/lib/u-weak.t
@@ -1,6 +1,11 @@
BEGIN {
chdir 't' if -d 't';
@INC = '../lib';
+ require Config; import Config;
+ if ($Config{extensions} !~ /\bList\/Util\b/) {
+ print "1..0 # Skip: List::Util was not built\n";
+ exit 0;
+ }
}
BEGIN {