Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Cannot read socket fh in Net::Daemon test

by mnooning (Beadle)
on Feb 17, 2011 at 20:27 UTC ( #888789=note: print w/ replies, xml ) Need Help??


in reply to Re: Cannot read socket fh in Net::Daemon test
in thread Cannot read socket fh in Net::Daemon test

Some answers to this are on the bug ticket rt.cpan.org/Ticket/Display.html?id=65735, and have come from a combination of Daniel Macks and mcmahon. For one thing, threads on Windows have been supplanted by ithreads after Perl 5.10. In addition, a nice patch by Gaspar Chilingarov seems to have made a lot of headway today towards solving the problem.

The t/thread.t tests are simply skipped if version >= 5.10. The only remaining problem is in telling the test harness/TAP - that it is okay not to have any tests for this. Just printing out "ok" to STDOUT or STDERR before exiting does not work. I will break out my old book - Perl Testing .. A Developer's Notebook - and figure this out.

I should be able to get it from here, but if anyone could spare me the reading, that would be great.


Comment on Re^2: Cannot read socket fh in Net::Daemon test
Re^3: Cannot read socket fh in Net::Daemon test
by Anonymous Monk on Feb 17, 2011 at 23:53 UTC

    Got it. Just for completeness, I will list the last problem and its solution.

    I was getting the error below when tests were being skipped completely.

    Parse errors: No plan found in TAP output

    The solution was to use Test::More in t/thread.t, and add " plan(skip_all => $message); at the appropriate place, which was just before exiting the file, once it became known that all tests were to be skipped.

    Thanks

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://888789]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2015-07-03 13:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (53 votes), past polls