summaryrefslogtreecommitdiff
path: root/spec/ruby/core/process
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2019-04-28 14:54:42 +0200
committerBenoit Daloze <eregontp@gmail.com>2019-04-28 14:55:30 +0200
commita27f7e499c66e5f09d5159c33c72834f14ec5aac (patch)
tree1984399653c6613e2b7f2d21a0842dd5441a5a76 /spec/ruby/core/process
parent9a0dbb341442fc0d203a5cd6fb46250e429e9188 (diff)
Add missing platform guard
Diffstat (limited to 'spec/ruby/core/process')
-rw-r--r--spec/ruby/core/process/fixtures/clocks.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/ruby/core/process/fixtures/clocks.rb b/spec/ruby/core/process/fixtures/clocks.rb
index c8f81fa4c3..e3f531944d 100644
--- a/spec/ruby/core/process/fixtures/clocks.rb
+++ b/spec/ruby/core/process/fixtures/clocks.rb
@@ -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