diff options
author | Benoit Daloze <eregontp@gmail.com> | 2019-04-27 23:42:31 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2019-04-27 23:42:31 +0200 |
commit | b7c301569df2eaee3a2785e5ec56f8c53fbc9fea (patch) | |
tree | 3972dbabf66488e9bf3101772fedc819beb84e2e | |
parent | 0d227d1ce6aa01b0f6db06bbbf828acb962d4734 (diff) | |
download | ruby-b7c301569df2eaee3a2785e5ec56f8c53fbc9fea.tar.gz |
Skip clock_getres spec on BSD
* clock_getres() seems to be incorrect on BSD:
https://rubyci.org/logs/rubyci.s3.amazonaws.com/freebsd11zfs/ruby-trunk/log/20190427T183003Z.fail.html.gz
-rw-r--r-- | spec/ruby/core/process/clock_getres_spec.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/ruby/core/process/clock_getres_spec.rb b/spec/ruby/core/process/clock_getres_spec.rb index 35180bc81b..79b3cb3e67 100644 --- a/spec/ruby/core/process/clock_getres_spec.rb +++ b/spec/ruby/core/process/clock_getres_spec.rb @@ -10,9 +10,11 @@ describe "Process.clock_getres" do end reported = Process.clock_getres(value, :nanosecond) - # The clock should not be more accurate than reported (times should be - # a multiple of reported precision.) - times.select { |t| t % reported > 0 }.should be_empty + platform_is_not :bsd do + # The clock should not be more accurate than reported (times should be + # a multiple of reported precision.) + times.select { |t| t % reported > 0 }.should be_empty + end # We're assuming precision is a multiple of ten - it may or may not # be an incompatibility if it isn't but we'd like to notice this, |