[前][次][番号順一覧][スレッド一覧]

ruby-changes:55609

From: Benoit <ko1@a...>
Date: Mon, 29 Apr 2019 06:34:37 +0900 (JST)
Subject: [ruby-changes:55609] Benoit Daloze:daa0874056 (trunk): CLOCK_MONOTONIC_RAW_APPROX seems less precise than advertised on macOS

https://git.ruby-lang.org/ruby.git/commit/?id=daa0874056

From daa0874056f602cbc99cab5ddfe3e590194f9bca Mon Sep 17 00:00:00 2001
From: Benoit Daloze <eregontp@g...>
Date: Sun, 28 Apr 2019 23:29:10 +0200
Subject: CLOCK_MONOTONIC_RAW_APPROX seems less precise than advertised on
 macOS

* https://travis-ci.org/ruby/ruby/builds/525651487

diff --git a/spec/ruby/core/process/fixtures/clocks.rb b/spec/ruby/core/process/fixtures/clocks.rb
index f8ec0f0..f59a956 100644
--- a/spec/ruby/core/process/fixtures/clocks.rb
+++ b/spec/ruby/core/process/fixtures/clocks.rb
@@ -29,7 +29,7 @@ module ProcessSpecs https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/process/fixtures/clocks.rb#L29
     # These clocks in practice on macOS seem to be less precise than advertised by clock_getres
     platform_is :darwin do
       clocks = clocks.reject { |clock, value|
-        [:CLOCK_UPTIME_RAW_APPROX].include?(clock)
+        [:CLOCK_UPTIME_RAW_APPROX, :CLOCK_MONOTONIC_RAW_APPROX].include?(clock)
       }
     end
 
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]