mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
b7c301569d
commit
2c283655a6
1 changed files with 4 additions and 2 deletions
|
@ -47,9 +47,11 @@ describe "Process.clock_getres" do
|
|||
|
||||
# These are observed
|
||||
|
||||
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
|
||||
Process.clock_getres(Process::CLOCK_MONOTONIC, :nanosecond).should <= 1_000
|
||||
|
|
Loading…
Reference in a new issue