mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
0d227d1ce6
commit
b7c301569d
1 changed files with 5 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue