diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2020-05-03 00:09:58 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2020-05-03 00:23:18 +0900 |
commit | 224f29c8e92094af10bc666c474b81a3545d6adf (patch) | |
tree | eb13336757154e41f2d4de9cdb2c3a5c73911b66 /spec/ruby/core | |
parent | fe2a832acec4aba674fb99538920a8811fe2487c (diff) | |
download | ruby-224f29c8e92094af10bc666c474b81a3545d6adf.tar.gz |
spec/ruby/core/process/clock_getres_spec.rb: lax the resolution limit
Android is Linux, but the clock resolution is 10 milliseconds.
I think that 1 microsecond is too strict for embedded environment.
This change laxes the limit to 10 milliseconds.
Diffstat (limited to 'spec/ruby/core')
-rw-r--r-- | spec/ruby/core/process/clock_getres_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/core/process/clock_getres_spec.rb b/spec/ruby/core/process/clock_getres_spec.rb index b3fc9a4e31..85aa2b25f1 100644 --- a/spec/ruby/core/process/clock_getres_spec.rb +++ b/spec/ruby/core/process/clock_getres_spec.rb @@ -20,14 +20,14 @@ describe "Process.clock_getres" do # These are observed platform_is :linux, :darwin, :windows do - it "with Process::CLOCK_REALTIME reports at least 1 microsecond" do - Process.clock_getres(Process::CLOCK_REALTIME, :nanosecond).should <= 1_000 + it "with Process::CLOCK_REALTIME reports at least 10 millisecond" do + Process.clock_getres(Process::CLOCK_REALTIME, :nanosecond).should <= 10_000_000 end end platform_is :linux, :darwin, :windows do - it "with Process::CLOCK_MONOTONIC reports at least 1 microsecond" do - Process.clock_getres(Process::CLOCK_MONOTONIC, :nanosecond).should <= 1_000 + it "with Process::CLOCK_MONOTONIC reports at least 10 millisecond" do + Process.clock_getres(Process::CLOCK_MONOTONIC, :nanosecond).should <= 10_000_000 end end end |