From 2c283655a650a7e97aaf36992d1d60c314403b7a Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Sat, 27 Apr 2019 23:43:58 +0200 Subject: [PATCH] Some Solaris versions seem to only provide millisecond accuracy for CLOCK_REALTIME * https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable11x/ruby-trunk/log/20190427T182404Z.fail.html.gz --- spec/ruby/core/process/clock_getres_spec.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spec/ruby/core/process/clock_getres_spec.rb b/spec/ruby/core/process/clock_getres_spec.rb index 79b3cb3e67..0239f8a665 100644 --- a/spec/ruby/core/process/clock_getres_spec.rb +++ b/spec/ruby/core/process/clock_getres_spec.rb @@ -47,8 +47,10 @@ describe "Process.clock_getres" do # These are observed - it "with Process::CLOCK_REALTIME reports at least 1 microsecond" do - Process.clock_getres(Process::CLOCK_REALTIME, :nanosecond).should <= 1_000 + platform_is_not :solaris do + it "with Process::CLOCK_REALTIME reports at least 1 microsecond" do + Process.clock_getres(Process::CLOCK_REALTIME, :nanosecond).should <= 1_000 + end end it "with Process::CLOCK_MONOTONIC reports at least 1 microsecond" do