1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

CLOCK_MONOTONIC_RAW_APPROX seems less precise than advertised on macOS

* https://travis-ci.org/ruby/ruby/builds/525651487
This commit is contained in:
Benoit Daloze 2019-04-28 23:29:10 +02:00
parent 79671ec57e
commit daa0874056

View file

@ -29,7 +29,7 @@ module ProcessSpecs
# These clocks in practice on macOS seem to be less precise than advertised by clock_getres # These clocks in practice on macOS seem to be less precise than advertised by clock_getres
platform_is :darwin do platform_is :darwin do
clocks = clocks.reject { |clock, value| clocks = clocks.reject { |clock, value|
[:CLOCK_UPTIME_RAW_APPROX].include?(clock) [:CLOCK_UPTIME_RAW_APPROX, :CLOCK_MONOTONIC_RAW_APPROX].include?(clock)
} }
end end