summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2002-05-31 08:39:37 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2002-05-31 08:39:37 +0000
commitb705a5ea9fdd4854d4e38bf90cb9e2fada3dde80 (patch)
treec746c0542cf00ab8aacb142fea5791a76ef2780e /t
parente2a00deffd1120f4d05f9572ed3a9b28ad643f99 (diff)
parenta6812a524b77d57b0408b3660133be60f7f0f56d (diff)
downloadperl-b705a5ea9fdd4854d4e38bf90cb9e2fada3dde80.tar.gz
Integrate mainline
p4raw-id: //depot/perlio@16919
Diffstat (limited to 't')
-rwxr-xr-xt/TEST2
-rw-r--r--t/harness2
-rw-r--r--t/lib/sample-tests/die1
-rw-r--r--t/lib/sample-tests/skip_nomsg4
-rw-r--r--t/lib/sample-tests/skipall3
-rw-r--r--t/lib/sample-tests/skipall_nomsg2
-rw-r--r--t/test.pl3
7 files changed, 14 insertions, 3 deletions
diff --git a/t/TEST b/t/TEST
index 1329205b0c..f2f623df79 100755
--- a/t/TEST
+++ b/t/TEST
@@ -97,7 +97,7 @@ unless (@ARGV) {
my $mani = File::Spec->catfile($updir, "MANIFEST");
if (open(MANI, $mani)) {
while (<MANI>) { # similar code in t/harness
- if (m!^(ext/\S+/?([^/]+\.t|test\.pl)|lib/\S+?(\.t|test\.pl))\s!) {
+ if (m!^(ext/\S+/?(?:[^/\s]+\.t|test\.pl)|lib/\S+?(?:\.t|test\.pl))\s!) {
$t = $1;
if (!$core || $t =~ m!^lib/[a-z]!)
{
diff --git a/t/harness b/t/harness
index 455a1f917c..f7239fe3b1 100644
--- a/t/harness
+++ b/t/harness
@@ -71,7 +71,7 @@ if (@ARGV) {
my $mani = File::Spec->catfile(File::Spec->updir, "MANIFEST");
if (open(MANI, $mani)) {
while (<MANI>) { # similar code in t/TEST
- if (m!^(ext/\S+/?([^/]+\.t|test\.pl)|lib/\S+?(\.t|test\.pl))\s!) {
+ if (m!^(ext/\S+/?(?:[^/\s]+\.t|test\.pl)|lib/\S+?(?:\.t|test\.pl))\s!) {
push @tests, File::Spec->catfile($updir, $1);
}
}
diff --git a/t/lib/sample-tests/die b/t/lib/sample-tests/die
index ffd8e88109..4c8534082d 100644
--- a/t/lib/sample-tests/die
+++ b/t/lib/sample-tests/die
@@ -1,3 +1,2 @@
-use lib 'lib';
use if ($^O eq 'VMS'), vmsish => 'hushed';
exit 1; # exit because die() can be noisy
diff --git a/t/lib/sample-tests/skip_nomsg b/t/lib/sample-tests/skip_nomsg
new file mode 100644
index 0000000000..51d1ed6b43
--- /dev/null
+++ b/t/lib/sample-tests/skip_nomsg
@@ -0,0 +1,4 @@
+print <<DUMMY;
+1..1
+ok 1 # Skip
+DUMMY
diff --git a/t/lib/sample-tests/skipall b/t/lib/sample-tests/skipall
new file mode 100644
index 0000000000..8c4679660c
--- /dev/null
+++ b/t/lib/sample-tests/skipall
@@ -0,0 +1,3 @@
+print <<DUMMY_TEST;
+1..0 # skip: rope
+DUMMY_TEST
diff --git a/t/lib/sample-tests/skipall_nomsg b/t/lib/sample-tests/skipall_nomsg
new file mode 100644
index 0000000000..9b0dc11a69
--- /dev/null
+++ b/t/lib/sample-tests/skipall_nomsg
@@ -0,0 +1,2 @@
+print "1..0\n";
+exit 0;
diff --git a/t/test.pl b/t/test.pl
index 9b3d9d67cf..427a64f578 100644
--- a/t/test.pl
+++ b/t/test.pl
@@ -433,6 +433,9 @@ sub which_perl {
unless (defined $Perl) {
$Perl = $^X;
+ # VMS should have 'perl' aliased properly
+ return $Perl if $^O eq 'VMS';
+
my $exe;
eval "require Config; Config->import";
if ($@) {