develooper Front page | perl.perl5.porters | Postings from January 2017

[perl #128445] Time::HiRes test failure on threaded darwin build

Thread Previous | Thread Next
Mojca Miklavec via RT
January 30, 2017 11:59
[perl #128445] Time::HiRes test failure on threaded darwin build
Message ID:
Dne Wed, 20 Jul 2016 04:42:48 -0700 je randir napisal:
> Yes, it passes tests now.

I'm probably experiencing the same problem with 5.24.1 (on OS X 10.7), but I checked 5.25.9 after finding this thread and all the tests pass on 5.25.9. Is there any chance to backport the fix? Thank you.

Some additional information below.

Just in case here's the relevant chuck from the tests (to make sure it's the same issue?):

dist/Time-HiRes/t/clock ....................................... panic: MUTEX_LOCK (22) [HiRes.xs:773] at t/clock.t line 40.
# Looks like you planned 5 tests but ran 1.
# Looks like your test exited with 255 just after 1.
FAILED--expected 5 tests, saw 1

This might be related to:

Also relevant. I'm using the following patch for 5.24, else the build would fail on Sierra:

--- dist/Time-HiRes/HiRes.xs.orig
+++ dist/Time-HiRes/HiRes.xs
@@ -940,7 +940,7 @@ BOOT:
 #   endif
-#if defined(PERL_DARWIN)
+#if defined(PERL_DARWIN) && !defined(CLOCK_REALTIME)
 #  ifdef USE_ITHREADS
 #  endif

It could also be that the test fails because of this patch.

via perlbug:  queue: perl5 status: open

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About