mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add missing platform guard
This commit is contained in:
parent
9a0dbb3414
commit
a27f7e499c
1 changed files with 5 additions and 3 deletions
|
@ -20,9 +20,11 @@ module ProcessSpecs
|
|||
clocks = clock_constants
|
||||
|
||||
# These clocks in practice on Linux do not seem to match their reported resolution.
|
||||
clocks = clocks.reject { |clock, value|
|
||||
[:CLOCK_REALTIME_COARSE, :CLOCK_MONOTONIC_COARSE].include?(clock)
|
||||
}
|
||||
platform_is :linux do
|
||||
clocks = clocks.reject { |clock, value|
|
||||
[:CLOCK_REALTIME_COARSE, :CLOCK_MONOTONIC_COARSE].include?(clock)
|
||||
}
|
||||
end
|
||||
|
||||
# These clocks in practice on ARM on Linux do not seem to match their reported resolution.
|
||||
platform_is :armv7l, :aarch64 do
|
||||
|
|
Loading…
Add table
Reference in a new issue