Jerry D. Hedden wrote:
> On 9/17/07, Jerry D. Hedden <jdhedden cpan.org> wrote:
>> On 9/17/07, chromatic <chromatic wgz.org> wrote:
>>> On Monday 17 September 2007 10:04:23 Jerry D.
Hedden wrote:
>>>
>>>> The trouble is that there are over 120
tests. If the test file dies
>>>> after 60, how is it also reporting 'ok'.
>>>>
>>>> The test file uses: use Test::More
'no_plan';
>>> Without a specific number of tests in the test
plan, how is Test::More to know
>>> that there should be 120 tests?
>> I agree that it wouldn't know there are 120+ tests.
However,
>> is it correct that it should report 'ok' if it also
detects that it died?
>> # Looks like your test died just after 60.
>> Isn't that supposed to be a failure?
>
> Or maybe this is Test::Harness problem? (Sorry to be
exposing my ignorance.)
This is a problem in t/TEST which is what "make
test" uses rather than the
full harness. It does not check the exit codes of
processes. Any non-zero
exit, regardless of the test's output, should be a failure.
Patch attached.
--
Whip me, beat me, make my code compatible with VMS!
|