From a27f7e499c66e5f09d5159c33c72834f14ec5aac Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Sun, 28 Apr 2019 14:54:42 +0200 Subject: Add missing platform guard --- spec/ruby/core/process/fixtures/clocks.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'spec/ruby/core') 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 -- cgit v1.2.3