ruby-changes:55581
From: Benoit <ko1@a...>
Date: Sun, 28 Apr 2019 21:36:48 +0900 (JST)
Subject: [ruby-changes:55581] Benoit Daloze:16695af0ef (trunk): Refactor logic in Process.clock_gettime spec
https://git.ruby-lang.org/ruby.git/commit/?id=16695af0ef From 16695af0ef13c709846a18ae9d186642445fae5f Mon Sep 17 00:00:00 2001 From: Benoit Daloze <eregontp@g...> Date: Sun, 28 Apr 2019 14:36:03 +0200 Subject: Refactor logic in Process.clock_gettime spec diff --git a/spec/ruby/core/process/fixtures/clocks.rb b/spec/ruby/core/process/fixtures/clocks.rb index 15297e6..5d6edeb 100644 --- a/spec/ruby/core/process/fixtures/clocks.rb +++ b/spec/ruby/core/process/fixtures/clocks.rb @@ -13,12 +13,10 @@ module ProcessSpecs https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/process/fixtures/clocks.rb#L13 # These clocks in practice on Linux do not seem to match # their reported resolution. clocks -= [:CLOCK_REALTIME_COARSE, :CLOCK_MONOTONIC_COARSE] - - clocks.map! { |c| - [c, Process.const_get(c)] - } end - clocks + clocks.map { |c| + [c, Process.const_get(c)] + } end end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/