diff options
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 |