summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorMichael G. Schwern <schwern@pobox.com>2007-09-18 11:25:14 -0700
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-09-19 07:56:56 +0000
commit343bc60da8bfbdfbbbc323d930a805acbc00c27d (patch)
tree5a2df5637d5ef9d82ef117a5e4a42f366736b93f /t
parent00ed247ad44f2548d0ea02a06b0a1bb418a1c315 (diff)
downloadperl-343bc60da8bfbdfbbbc323d930a805acbc00c27d.tar.gz
t/TEST doesn't check exit (was Re: Test::More bug?)
Message-ID: <46F07A7A.1060900@pobox.com> p4raw-id: //depot/perl@31896
Diffstat (limited to 't')
-rwxr-xr-xt/TEST6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/TEST b/t/TEST
index 5c6c6131d8..e702ffbecc 100755
--- a/t/TEST
+++ b/t/TEST
@@ -479,6 +479,12 @@ EOT
$failure="FAILED--expected $max tests, saw $next";
}
+ if( !defined $failure # don't mask a test failure
+ and $? )
+ {
+ $failure = "FAILED--non-zero wait status: $?";
+ }
+
if (defined $failure) {
print "${te}$failure\n";
$::bad_files++;