1
0
Fork 0
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:
Benoit Daloze 2019-04-28 14:54:42 +02:00
parent 9a0dbb3414
commit a27f7e499c

View file

@ -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