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

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

Thread Previous | Thread Next
From:
Mojca Miklavec via RT
Date:
January 30, 2017 11:59
Subject:
[perl #128445] Time::HiRes test failure on threaded darwin build
Message ID:
rt-4.0.24-6875-1485777586-994.128445-15-0@perl.org
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:
    https://rt.perl.org/Public/Bug/Display.html?id=128972

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
 #endif
-#if defined(PERL_DARWIN)
+#if defined(PERL_DARWIN) && !defined(CLOCK_REALTIME)
 #  ifdef USE_ITHREADS
   MUTEX_INIT(&darwin_time_mutex);
 #  endif

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

https://trac.macports.org/ticket/52012
https://trac.macports.org/ticket/53440


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=128445

Thread Previous | 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