in reply to Re^2: test::harness, stderr, and child processes
in thread test::harness, stderr, and child processes

Thanks. Odd. After a quick skim it looks like it should work.

Can you tell me what version of the Test::Simple distro you're using? If you're not using the latest (0.47) that might be your problem since there have been several fork-related bug fixes.

Also, I can't tell from the output whether the non-test related output is going to STDOUT or STDERR. If the bit before the ok here:

perl /home/water/dev/PerlCode/lib/Test/HighlanderTests/death.pl || tou +ch /tmp/water/highlander.okok 5 - death is a failure, test went as pl +anned

is going to STDOUT then Test::Harness will miss the "ok 5".

If not, let me know and I'll dig further.

Replies are listed 'Best First'.
Re^4: test::harness, stderr, and child processes
by water (Deacon) on Sep 04, 2004 at 07:22 UTC
    Wow, you're good.
    &remove; my $x = "perl $death $FAILS"; print $x; my $rc = system("perl $death $FAILS"); file_present('death is a failure');
    The print in second line -- don't know how that crept in there, egads -- was causing exactly the problem you described.

     '++' x 1000 to you, adrianh, thanks!