1
0
Fork 0
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:
Benoit Daloze 2019-04-27 23:43:58 +02:00
parent b7c301569d
commit 2c283655a6

View file

@ -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