summaryrefslogtreecommitdiff
path: root/t/test.pl
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-09-25 20:37:14 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-09-25 20:37:14 +0000
commit982b7cb74b4bd865e800703e51ffca34f7ee9caa (patch)
treef722385858cff224319d5adbee63e115b7c983ed /t/test.pl
parent68d932c852b68fc407dda03516c89fb270ae694d (diff)
downloadperl-982b7cb74b4bd865e800703e51ffca34f7ee9caa.tar.gz
skip($mess) should result in one skip.
p4raw-id: //depot/perl@12213
Diffstat (limited to 't/test.pl')
-rw-r--r--t/test.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/test.pl b/t/test.pl
index c7c9908424..029d80f5b7 100644
--- a/t/test.pl
+++ b/t/test.pl
@@ -110,7 +110,8 @@ sub fail {
# Note: can't pass multipart messages since we try to
# be compatible with Test::More::skip().
sub skip {
- my ($mess, $n) = @_;
+ my $mess = shift;
+ my $n = @_ ? shift : 1;
for (1..$n) {
ok(1, "# skip:", $mess);
}