t/TEST doesn't check exit (was Re: Test::More bug?)
authorMichael G. Schwern <schwern@pobox.com>
Tue, 18 Sep 2007 18:25:14 +0000 (11:25 -0700)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Wed, 19 Sep 2007 07:56:56 +0000 (07:56 +0000)
Message-ID: <46F07A7A.1060900@pobox.com>

p4raw-id: //depot/perl@31896

t/TEST

diff --git a/t/TEST b/t/TEST
index 5c6c613..e702ffb 100755 (executable)
--- 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++;