diff options
author | Benoit Daloze <eregontp@gmail.com> | 2019-04-27 23:43:58 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2019-04-27 23:46:08 +0200 |
commit | 2c283655a650a7e97aaf36992d1d60c314403b7a (patch) | |
tree | 34aa747da746b66aa5f784ddb574a30b4900c109 | |
parent | b7c301569df2eaee3a2785e5ec56f8c53fbc9fea (diff) | |
download | ruby-2c283655a650a7e97aaf36992d1d60c314403b7a.tar.gz |
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
-rw-r--r-- | spec/ruby/core/process/clock_getres_spec.rb | 6 |
1 files 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 |