2.99_04 -- Win32 test exit code still broken

David Golden xdaveg at gmail.com
Fri Oct 12 01:58:33 UTC 2007


I installed 2.99_04.  It's tests ran fine, but testing CPAN::Reporter
with it gave me this (in blockquotes):

<blockquote>
C:\david\svk\CPAN-Reporter>Build test test_files=t\55_test_report_discard.t
Copying lib\CPAN\Reporter.pm -> blib\lib\CPAN\Reporter.pm
t\55_test_report_discard...... Dubious, test returned 16777215 (wstat -1, 0xffff
ffff)
 All 18 subtests passed

Test Summary Report
-------------------
t\55_test_report_discard.t (Wstat: -1 Tests: 18 Failed: 0)
  Non-zero exit status: 16777215
Files=1, Tests=18,  8 wallclock secs ( 0.02 usr +  0.01 sys =  0.03 CPU)
Result: FAIL
Failed 1/1 test programs. 0/18 subtests failed.
</blockquote>

I think that "-1" is a special wait code and should be checked for and
handled explicitly.  (See perldoc -f wait and waidpid).  I'm not
convinced that's an "error" condition.

David


More information about the tapx-dev mailing list