summaryrefslogtreecommitdiff
path: root/t/UTEST
diff options
context:
space:
mode:
authorAndreas König <a.koenig@mind.de>2000-12-09 18:14:25 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2000-12-10 04:39:19 +0000
commitd667a7e6cc929099334c86c1f8ba43c1add38609 (patch)
treecb2200563c1df675e088590a64a63daea84d92f2 /t/UTEST
parentcbc5248d01a71061a57c964b98f44bd4cb3a75c0 (diff)
downloadperl-d667a7e6cc929099334c86c1f8ba43c1add38609.tar.gz
Re: PATCH: Let Test::Harness bail out early (Was: Testing module dependencies)
Message-ID: <m3wvd9o9lq.fsf@ak-71.mind.de> p4raw-id: //depot/perl@8069
Diffstat (limited to 't/UTEST')
-rwxr-xr-xt/UTEST3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/UTEST b/t/UTEST
index 9c1dfc0d80..1be1a5bbef 100755
--- a/t/UTEST
+++ b/t/UTEST
@@ -127,6 +127,9 @@ EOT
$next = $1, $ok = 0, last if /^not ok ([0-9]*)/;
if (/^ok (\d+)(\s*#.*)?$/ && $1 == $next) {
$next = $next + 1;
+ }
+ elsif (/^Bail out!\s*(.*)/i) { # magic words
+ die "FAILED--Further testing stopped" . ($1 ? ": $1\n" : ".\n");
}
else {
$ok = 0;