From bbb93608a385242da93bc5256a90a6376981d86f Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Sun, 28 Apr 2019 23:16:03 +0200 Subject: Move the check for CentOS CLOCK_MONOTONIC_RAW next to others * Fixes "No behavior expectation was found in the example" * https://rubyci.org/logs/rubyci.s3.amazonaws.com/centos6/ruby-trunk/log/20190428T093004Z.fail.html.gz --- spec/ruby/core/process/fixtures/clocks.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'spec/ruby/core/process/fixtures/clocks.rb') diff --git a/spec/ruby/core/process/fixtures/clocks.rb b/spec/ruby/core/process/fixtures/clocks.rb index c04ae7785f..f8ec0f0a20 100644 --- a/spec/ruby/core/process/fixtures/clocks.rb +++ b/spec/ruby/core/process/fixtures/clocks.rb @@ -40,6 +40,13 @@ module ProcessSpecs } end + # CentOS seems to report a negative resolution for CLOCK_MONOTONIC_RAW + platform_is :linux do + clocks = clocks.reject { |clock, value| + clock == :CLOCK_MONOTONIC_RAW and Process.clock_getres(value, :nanosecond) < 0 + } + end + clocks end end -- cgit v1.2.3