diff options
author | Benoit Daloze <eregontp@gmail.com> | 2019-04-28 15:23:12 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2019-04-28 15:25:09 +0200 |
commit | d906dd87b049e84fc9a17b89a74fdd52d40c5fbb (patch) | |
tree | be93a588dddb303011eec6a69a77a8b58f7144b9 /spec/ruby/core/process/fixtures/clocks.rb | |
parent | 392d84b4900eb954fdfcf11c2a63dd4c029996f4 (diff) | |
download | ruby-d906dd87b049e84fc9a17b89a74fdd52d40c5fbb.tar.gz |
Skip CLOCK_UPTIME_RAW_APPROX since it seems less precise than advertised on macOS
* See https://travis-ci.org/ruby/ruby/jobs/525595997
Diffstat (limited to 'spec/ruby/core/process/fixtures/clocks.rb')
-rw-r--r-- | spec/ruby/core/process/fixtures/clocks.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/ruby/core/process/fixtures/clocks.rb b/spec/ruby/core/process/fixtures/clocks.rb index e3f531944d..c04ae7785f 100644 --- a/spec/ruby/core/process/fixtures/clocks.rb +++ b/spec/ruby/core/process/fixtures/clocks.rb @@ -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| |