aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/process/fixtures/clocks.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/process/fixtures/clocks.rb')
-rw-r--r--spec/ruby/core/process/fixtures/clocks.rb7
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 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