--- Joshua Gatcomb <[EMAIL PROTECTED]>
wrote:
> Up until a couple of weeks ago, all the threads
> tests
> were passing on Cygwin. I had submitted a patch
> some
> time ago that never got applied enabling tests for
> threads, timer, and extend_13 that never got
> applied.
> I figured there was good reason so I didn't say
> anything about the tests failing except an
> occasional
> "that's weird" on #parrot.
>
> So today I decide to look at threads_2.pasm
>
> It says at the bottom that the output could appear
> in
> reversed order and so I am guessing the sleep
> statement is to ensure that it comes out in the
> proper
> order.
>
> So - why is the test failing? Because the second
> print statement never makes it to the screen.
>
> If I remove the print statement entirely, I see both
> things in the reverse expected order.
>
> If I place the sleep statement after the main thread
> print then all I get to the screen is the that and
> not
> the print statement from thread 1
>
> It is almost as if by the time the time the second
> print happens, the filehandle is already closed
>
>
> So - since threads aren't officially supposed to be
> working on Cygwin - is this something I should care
> about or not?
>
> Cheers
> Joshua Gatcomb
> a.k.a. Limbic~Region
>
In summary, all code in all threads runs to completion
but whichever thread finishes last can't print to the
screen
$ perl t/harness --gc-debug --running-make-test -b
t/pmc/threads.t
Failed 7/11 tests, 36.36% okay (less 2 skipped
tests: 2 okay, 18.18%)
Failed Test Stat Wstat Total Fail Failed List of
Failed
-------------------------------------------------------------------------------
t/pmc/threads.t 7 1792 11 7 63.64% 2-3 5-9
2 subtests skipped.
Failed 1/1 test scripts, 0.00% okay. 7/11 subtests
failed, 36.36% okay.
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail