develooper Front page | perl.perl5.porters | Postings from October 2003

[perl@21451] t/io/openpid.t tests fail on Win32 with :stdio

Thread Next
From:
Steve Hay
Date:
October 15, 2003 06:13
Subject:
[perl@21451] t/io/openpid.t tests fail on Win32 with :stdio
Message ID:
3F8D486A.9060704@uk.radan.com
The t/io/openpid.t tests currently fail in bleadperl on Win32 with the 
:stdio layer:

If I "set PERLIO=:stdio :crlf" and run "perl harness -v io\openpid.t" 
then the test pauses for 30secs, then outputs this:

=====
io/openpid....# Failed at io/openpid.t line 60
#      got '0'
# expected '1'
# Failed at io/openpid.t line 68
#      got '1'
# expected '2'
=====

and then hangs.  If I kill the most "junior" perl.exe process in the 
process tree at this point then the remainder of the test continues.  
Here's the complete output:

=====
io/openpid....# Failed at io/openpid.t line 60
#      got '0'
# expected '1'
# Failed at io/openpid.t line 68
#      got '1'
# expected '2'
1..10
ok 1 - first process started
ok 2 -     second
ok 3 -     third
ok 4 -     fourth
# pids were 2892, 480, 1892, 3868
ok 5 - message from first process
not ok 6 - first process killed
# errno == Invalid argument
ok 7 - message from second process
not ok 8 - killing procs 2 & 3
# errno == Invalid argument
# waiting for process 3868 to exit
ok 10 - fourth process reaped
FAILED tests 6, 8-9
        Failed 3/10 tests, 70.00% okay
Failed Test  Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
io/openpid.t               10    3  30.00%  6 8-9
Failed 1/1 test scripts, 0.00% okay. 3/10 subtests failed, 70.00% okay.
=====

This problem has been causing my overnight Smokes to hang ever since I 
switched from perl-5.8.x to perl-current, so I don't know when this 
problem first arose.

The test runs fine if I "set PERLIO=:perlio :crlf" instead, and of 
course it worked under 5.8.1 with both :stdio and :perlio.

- Steve


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About