Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Time-HiRes CPAN distribution.

Report information
The Basics
Id:
72754
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
dom [...] cpan.org
Cc:
AdminCc:

BugTracker
Severity:
Normal
Broken in:
1.9721
Fixed in:
(no value)

Attachments
0001-Skip-interval-timer-tests-in-Time-HiRes-on-GNU-Hurd.patch



Subject: Skip interval timer tests in Time::HiRes on GNU/Hurd
GNU/Hurd has no support for virtual interval timers (ITIMER_VIRTUAL) so skip the tests on this platform along with QNX and Haiku.
Subject: 0001-Skip-interval-timer-tests-in-Time-HiRes-on-GNU-Hurd.patch
From 633127b602f49de6c2a197ca43bd6f74f86a2d7f Mon Sep 17 00:00:00 2001 From: Dominic Hargreaves <dom@earth.li> Date: Sun, 27 Nov 2011 15:42:07 +0000 Subject: [PATCH] Skip interval timer tests in Time::HiRes on GNU/Hurd GNU/Hurd has no support for virtual interval timers (ITIMER_VIRTUAL) so skip the tests on this platform along with QNX and Haiku. --- cpan/Time-HiRes/HiRes.pm | 4 ++-- cpan/Time-HiRes/t/HiRes.t | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cpan/Time-HiRes/HiRes.pm b/cpan/Time-HiRes/HiRes.pm index 8f2ec21..937e202 100644 --- a/cpan/Time-HiRes/HiRes.pm +++ b/cpan/Time-HiRes/HiRes.pm @@ -560,8 +560,8 @@ seconds. Time::HiRes will notice this eventually and recalibrate. Note that since Time::HiRes 1.77 the clock_gettime(CLOCK_MONOTONIC) might help in this (in case your system supports CLOCK_MONOTONIC). -Some systems have APIs but not implementations: for example QNX and Haiku -have the interval timer APIs but not the functionality. +Some systems have APIs but not implementations: for example QNX, Haiku +and GNU/Hurd have the interval timer APIs but not the functionality. =head1 SEE ALSO diff --git a/cpan/Time-HiRes/t/HiRes.t b/cpan/Time-HiRes/t/HiRes.t index 0a38e78..cfd05fc 100644 --- a/cpan/Time-HiRes/t/HiRes.t +++ b/cpan/Time-HiRes/t/HiRes.t @@ -353,6 +353,7 @@ unless (defined &Time::HiRes::setitimer && $Config{sig_name} =~ m/\bVTALRM\b/ && $^O ne 'nto' # nto: QNX 6 has the API but no implementation && $^O ne 'haiku' # haiku: has the API but no implementation + && $^O ne 'gnu' # GNU/Hurd: has the API but no implementation; <http://savannah.gnu.org/task/?8916> ) { for (18..19) { print "ok $_ # Skip: no virtual interval timers\n";
Thanks. Skipping added in Time-HiRes-1.9725.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.