Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 9b2fa65

Browse files
committed
Time-HiRes: Update to 1.9742_01
See https://github.com/rurban/Time-HiRes branch cperl
1 parent 039ed67 commit 9b2fa65

File tree

12 files changed

+30
-13
lines changed

12 files changed

+30
-13
lines changed

Porting/Maintainers.pl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1473,10 +1473,11 @@ package Maintainers;
14731473
},
14741474

14751475
'Time::HiRes' => {
1476-
'DISTRIBUTION' => 'JHI/Time-HiRes-1.9741.tar.gz',
1476+
'DISTRIBUTION' => 'JHI/Time-HiRes-1.9742.tar.gz',
14771477
'FILES' => q[dist/Time-HiRes],
1478-
# for overly slow smokers
1479-
'CUSTOMIZED' => [ 't/nanosleep.t' ],
1478+
# for overly slow smokers. See https://github.com/rurban/Time-HiRes
1479+
'CUSTOMIZED' => [ qw( HiRes.xs t/alarm.t t/clock.t t/itimer.t
1480+
t/nanosleep.t t/usleep.t t/utime.t typemap) ],
14801481
},
14811482

14821483
'Time::Local' => {

dist/Module-CoreList/lib/Module/CoreList.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14866,6 +14866,7 @@ our %delta = (
1486614866
'TAP::Parser::YAMLish::Reader'=> '3.39',
1486714867
'TAP::Parser::YAMLish::Writer'=> '3.39',
1486814868
'Test::Harness' => '3.39_01',
14869+
'Time::HiRes' => '1.9742_01',
1486914870
'Safe' => '2.40_02c',
1487014871
'Storable' => '3.05_12',
1487114872
'XSLoader' => '1.03c',

dist/Time-HiRes/Changes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
Revision history for the Perl extension Time::HiRes.
22

3+
1.9742 [2017-04-16]
4+
- prefer 3-argument open: blead 1ae6ead9
5+
- fix dist/Time-HiRes/t/*.t that assumed '.' in @INC: blead 465db51d
6+
- fix cases where 'do file' should be 'do ./file'.: blead 8b69401c
7+
38
1.9741 [2016-11-20]
49
- C++11 compatibility: blead a914236c
510
- El Capitan compatibility: blead 45bbc013

dist/Time-HiRes/HiRes.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ our @EXPORT_OK = qw (usleep sleep ualarm alarm gettimeofday time tv_interval
2828
stat lstat utime
2929
);
3030

31-
our $VERSION = '1.9741_02';
31+
our $VERSION = '1.9742_01';
3232
our $XS_VERSION = $VERSION;
3333
$VERSION = eval $VERSION;
3434

dist/Time-HiRes/t/alarm.t

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ BEGIN { require_ok "Time::HiRes"; }
88

99
use Config;
1010

11+
# increase this to 0.60 on CI, overloaded build servers on a VM, or slow machines
1112
my $limit = 0.25; # 25% is acceptable slosh for testing timers
1213

13-
my $xdefine = '';
14+
my $xdefine = '';
1415
if (open(XDEFINE, "<", "xdefine")) {
1516
chomp($xdefine = <XDEFINE> || "");
1617
close(XDEFINE);

dist/Time-HiRes/t/clock.t

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@ printf("# have_clock = %d\n", &Time::HiRes::d_clock);
2222
# Ideally, we'd like to test that the timers are rather precise.
2323
# However, if the system is busy, there are no guarantees on how
2424
# quickly we will return. This limit used to be 10%, but that
25-
# was occasionally triggered falsely.
25+
# was occasionally triggered falsely.
2626
# So let's try 25%.
2727
# Another possibility might be to print "ok" if the test completes fine
2828
# with (say) 10% slosh, "skip - system may have been busy?" if the test
2929
# completes fine with (say) 30% slosh, and fail otherwise. If you do that,
3030
# consider changing over to test.pl at the same time.
3131
# --A.D., Nov 27, 2001
32+
# Increase this to 0.60 on CI, overloaded build servers on a VM, or slow machines
3233
my $limit = 0.25; # 25% is acceptable slosh for testing timers
3334

3435
SKIP: {

dist/Time-HiRes/t/itimer.t

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ use Test::More tests => 2;
2929
BEGIN { push @INC, '.' }
3030
use t::Watchdog;
3131

32+
# Increase this to 0.60 on CI, overloaded build servers on a VM, or slow machines
3233
my $limit = 0.25; # 25% is acceptable slosh for testing timers
3334

3435
my $i = 3;
@@ -37,7 +38,7 @@ my $r = [Time::HiRes::gettimeofday()];
3738
$SIG{VTALRM} = sub {
3839
$i ? $i-- : Time::HiRes::setitimer(&Time::HiRes::ITIMER_VIRTUAL, 0);
3940
printf("# Tick! $i %s\n", Time::HiRes::tv_interval($r));
40-
};
41+
};
4142

4243
printf("# setitimer: %s\n", join(" ",
4344
Time::HiRes::setitimer(&Time::HiRes::ITIMER_VIRTUAL, 0.5, 0.4)));

dist/Time-HiRes/t/nanosleep.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ BEGIN {
88
}
99
}
1010

11-
use Test::More 0.82 tests => 3;
11+
use Test::More tests => 3;
1212
BEGIN { push @INC, '.' }
1313
use t::Watchdog;
1414
use Config;
@@ -38,7 +38,7 @@ SKIP: {
3838
ok(1, "skip nanosleep test on overly slow smoker. slept $d secs, not 0.5 secs");
3939
} else {
4040
ok ($d > 0.4 && $d < 0.9, "slept $d secs of 0.5 secs") or diag "slept $d secs $f to $f2";
41-
}
41+
}
4242
}
4343

4444
1;

dist/Time-HiRes/t/usleep.t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ eval { Time::HiRes::usleep(-2) };
1616
like $@, qr/::usleep\(-2\): negative time not invented yet/,
1717
"negative time error";
1818

19+
# Increase this to 0.60 on CI, overloaded build servers on a VM, or slow machines
1920
my $limit = 0.25; # 25% is acceptable slosh for testing timers
2021

2122
my $one = CORE::time;

pod/perlcdelta.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1645,7 +1645,7 @@ Documentation
16451645

16461646
Less runtime memory: demand-load Carp, Config.
16471647

1648-
=item Time-HiRes 1.9741_01
1648+
=item Time-HiRes 1.9742_01
16491649

16501650
Fix -Wc++11-compat warnings
16511651
Keep our better C++ fixes

0 commit comments

Comments
 (0)