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

Hmmm, 26th post in 5 years and it has <br> in code tags, I think its time to read Markup in the Monastery/How do I post a question effectively?

Replies are listed 'Best First'.
Re^2: Cannot read socket fh in Net::Daemon test
by mnooning (Beadle) on Feb 17, 2011 at 20:27 UTC

    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.

      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

Re^2: Cannot read socket fh in Net::Daemon test
by mnooning (Beadle) on Feb 17, 2011 at 17:32 UTC

    Corrected. Thanks for the reminder. The shown code in question is now downloadable, too.