ruby-changes:55589
From: Benoit <ko1@a...>
Date: Sun, 28 Apr 2019 21:55:50 +0900 (JST)
Subject: [ruby-changes:55589] Benoit Daloze:a27f7e499c (trunk): Add missing platform guard
https://git.ruby-lang.org/ruby.git/commit/?id=a27f7e499c From a27f7e499c66e5f09d5159c33c72834f14ec5aac Mon Sep 17 00:00:00 2001 From: Benoit Daloze <eregontp@g...> Date: Sun, 28 Apr 2019 14:54:42 +0200 Subject: Add missing platform guard diff --git a/spec/ruby/core/process/fixtures/clocks.rb b/spec/ruby/core/process/fixtures/clocks.rb index c8f81fa..e3f5319 100644 --- a/spec/ruby/core/process/fixtures/clocks.rb +++ b/spec/ruby/core/process/fixtures/clocks.rb @@ -20,9 +20,11 @@ module ProcessSpecs https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/process/fixtures/clocks.rb#L20 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 v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/