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
@ -47,8 +47,10 @@ describe "Process.clock_getres" do
|
|||||||
|
|
||||||
# These are observed
|
# These are observed
|
||||||
|
|
||||||
it "with Process::CLOCK_REALTIME reports at least 1 microsecond" do
|
platform_is_not :solaris do
|
||||||
Process.clock_getres(Process::CLOCK_REALTIME, :nanosecond).should <= 1_000
|
it "with Process::CLOCK_REALTIME reports at least 1 microsecond" do
|
||||||
|
Process.clock_getres(Process::CLOCK_REALTIME, :nanosecond).should <= 1_000
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
it "with Process::CLOCK_MONOTONIC reports at least 1 microsecond" do
|
it "with Process::CLOCK_MONOTONIC reports at least 1 microsecond" do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user