diff options
author | Benoit Daloze <eregontp@gmail.com> | 2019-05-24 14:29:47 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2019-05-24 14:29:47 +0200 |
commit | 4541d2effe1f32e74d27602b44aff12cbf6937aa (patch) | |
tree | ae498a152142de6a6206802f7e01dbb129ac2d81 /spec/ruby/core/process/fixtures/clocks.rb | |
parent | 706c816ad270d981c37894b78ac49cdf1d7cf350 (diff) | |
download | ruby-4541d2effe1f32e74d27602b44aff12cbf6937aa.tar.gz |
Only exclude the failing clocks for Process.clock_getres specs on AIX
* https://rubyci.org/logs/rubyci.s3.amazonaws.com/aix71_ppc/ruby-trunk/log/20190522T103301Z.fail.html.gz
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 6e8a65f9de..7acc8fbd58 100644 --- a/spec/ruby/core/process/fixtures/clocks.rb +++ b/spec/ruby/core/process/fixtures/clocks.rb @@ -40,6 +40,13 @@ module ProcessSpecs } end + # These clocks in practice on AIX seem to be more precise than their reported resolution. + platform_is :aix do + clocks = clocks.reject { |clock, value| + [:CLOCK_REALTIME, :CLOCK_MONOTONIC].include?(clock) + } + 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 |