diff options
author | Benoit Daloze <eregontp@gmail.com> | 2019-05-20 10:40:34 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2019-05-20 10:41:40 +0200 |
commit | 2a34543e11299146db688e636e0b95c22990e302 (patch) | |
tree | 09c702c067af3bdb2519e95d0818a15e985fd440 /spec/ruby/core/process/fixtures/clocks.rb | |
parent | ab0f2deab11a3203f9af3af1a27dfea1f4a882f3 (diff) | |
download | ruby-2a34543e11299146db688e636e0b95c22990e302.tar.gz |
Move exclusion for Hyper-V next to other skipped constants
Diffstat (limited to 'spec/ruby/core/process/fixtures/clocks.rb')
-rw-r--r-- | spec/ruby/core/process/fixtures/clocks.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/ruby/core/process/fixtures/clocks.rb b/spec/ruby/core/process/fixtures/clocks.rb index f59a9562ec..cd75b8a772 100644 --- a/spec/ruby/core/process/fixtures/clocks.rb +++ b/spec/ruby/core/process/fixtures/clocks.rb @@ -47,6 +47,14 @@ module ProcessSpecs } end + # On a Hyper-V Linux guest machine, these clocks in practice + # seem to be less precise than advertised by clock_getres + platform_is :linux do + clocks = clocks.reject { |clock, value| + clock == :CLOCK_MONOTONIC_RAW + } + end + clocks end end |