summaryrefslogtreecommitdiff
path: root/t/japh
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-04-20 01:48:13 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-04-20 01:48:13 +0000
commit51bdca1b1a55608c6ee19d39f4c22dfef169546d (patch)
tree082dd059b5c0fe1aa6fcf5554de5ae148f70730d /t/japh
parent491fd90a109f6263a896300e5709e6fd255f075f (diff)
downloadperl-51bdca1b1a55608c6ee19d39f4c22dfef169546d.tar.gz
[PATCH] t/japh/abigail.t
From: abigail@foad.org Date: Fri, 19 Apr 2002 02:21:36 +0200 Message-ID: <20020419002136.16948.qmail@foad.org> Subject: Re: [PATCH] t/japh/abigail.t From: "Craig A. Berry" <craigberry@mac.com> Date: Fri, 19 Apr 2002 11:23:45 -0500 Message-Id: <a05111705b8e5f49d5618@[172.16.52.1]> p4raw-id: //depot/perl@16013
Diffstat (limited to 't/japh')
-rw-r--r--t/japh/abigail.t32
1 files changed, 24 insertions, 8 deletions
diff --git a/t/japh/abigail.t b/t/japh/abigail.t
index 9b2dc968ec..c8412aa6e5 100644
--- a/t/japh/abigail.t
+++ b/t/japh/abigail.t
@@ -21,9 +21,9 @@ BEGIN {
#
sub skip {
my $why = shift;
- my $test = curr_test;
my $n = @_ ? shift : 1;
for (1..$n) {
+ my $test = curr_test;
print STDOUT "ok $test # skip: $why\n";
next_test;
}
@@ -80,7 +80,7 @@ plan tests => 130;
if ($^O eq 'MSWin32' ||
$^O eq 'NetWare' ||
$^O eq 'VMS') {
- skip 3, "Your platform quotes differently.\n";
+ skip "Your platform quotes differently.", 3;
last;
}
@@ -108,7 +108,7 @@ plan tests => 130;
if ($^O eq 'MSWin32' ||
$^O eq 'NetWare' ||
$^O eq 'VMS') {
- skip 1, "Your platform quotes differently.\n";
+ skip "Your platform quotes differently.", 1;
last;
}
is (runperl (switches => [qw /-sweprint --/,
@@ -170,14 +170,16 @@ plan tests => 130;
foreach my $program (@progs) {
if (exists $program -> {SKIP}) {
chomp $program -> {SKIP};
- skip $program -> {SKIP};
+ skip $program -> {SKIP}, 1;
next;
}
- if (@{$program -> {SKIP_OS}} &&
- grep {$^O eq $_} @{$program -> {SKIP_OS}}) {
- skip "Your OS uses different quoting.";
- next;
+ if (@{$program -> {SKIP_OS}}) {
+ chomp @{$program -> {SKIP_OS}};
+ if (grep {$^O eq $_} @{$program -> {SKIP_OS}}) {
+ skip "Your OS uses different quoting.", 1;
+ next;
+ }
}
map {s/\$datafile/$datafile/} @{$program -> {ARGS}};
@@ -212,6 +214,20 @@ truncate$0,-1+-s$0;exec$0;}}//rekcaH_lreP_rehtona_tsuJ
--
chomp @programs;
+ if ($^O eq 'VMS') {
+ # VMS needs extensions for files to be executable,
+ # but the Japhs above rely on $0 being exactly the
+ # filename of the program.
+ skip "VMS", 2 * @programs;
+ last
+ }
+
+ use Config;
+ unless (defined $Config {useperlio}) {
+ skip "Uuseperlio", 2 * @programs;
+ last
+ }
+
my $i = 1;
foreach my $program (@programs) {
open my $fh => "> $progfile" or die "Failed to open $progfile: $!\n";