ruby-changes:72330
From: Jeremy <ko1@a...>
Date: Mon, 27 Jun 2022 04:40:15 +0900 (JST)
Subject: [ruby-changes:72330] c3eb0437f2 (master): Fix Process.clock_gettime specs on OpenBSD
https://git.ruby-lang.org/ruby.git/commit/?id=c3eb0437f2 From c3eb0437f2454ef59aa605366bbd3901892f0071 Mon Sep 17 00:00:00 2001 From: Jeremy Evans <code@j...> Date: Sun, 26 Jun 2022 12:39:16 -0700 Subject: Fix Process.clock_gettime specs on OpenBSD --- spec/ruby/core/process/clock_gettime_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/ruby/core/process/clock_gettime_spec.rb b/spec/ruby/core/process/clock_gettime_spec.rb index f00b8db043..6c1a52f21e 100644 --- a/spec/ruby/core/process/clock_gettime_spec.rb +++ b/spec/ruby/core/process/clock_gettime_spec.rb @@ -83,7 +83,7 @@ describe "Process.clock_gettime" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/process/clock_gettime_spec.rb#L83 end end - platform_is :freebsd, :openbsd do + platform_is :freebsd do it "CLOCK_VIRTUAL" do Process.clock_gettime(Process::CLOCK_VIRTUAL).should be_an_instance_of(Float) end @@ -91,7 +91,9 @@ describe "Process.clock_gettime" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/process/clock_gettime_spec.rb#L91 it "CLOCK_PROF" do Process.clock_gettime(Process::CLOCK_PROF).should be_an_instance_of(Float) end + end + platform_is :freebsd, :openbsd do it "CLOCK_UPTIME" do Process.clock_gettime(Process::CLOCK_UPTIME).should be_an_instance_of(Float) end -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/