Skip CLOCK_UPTIME_RAW_APPROX since it seems less precise than advertised on macOS

* See https://travis-ci.org/ruby/ruby/jobs/525595997
This commit is contained in:
Benoit Daloze 2019-04-28 15:23:12 +02:00
parent 392d84b490
commit d906dd87b0
2 changed files with 8 additions and 1 deletions

View File

@ -26,6 +26,13 @@ module ProcessSpecs
}
end
# These clocks in practice on macOS seem to be less precise than advertised by clock_getres
platform_is :darwin do
clocks = clocks.reject { |clock, value|
[:CLOCK_UPTIME_RAW_APPROX].include?(clock)
}
end
# These clocks in practice on ARM on Linux do not seem to match their reported resolution.
platform_is :armv7l, :aarch64 do
clocks = clocks.reject { |clock, value|