ruby-changes:73976
From: Hiroshi <ko1@a...>
Date: Thu, 13 Oct 2022 13:42:41 +0900 (JST)
Subject: [ruby-changes:73976] b734832883 (master): Skip utime example with Intel C Compiler suite
https://git.ruby-lang.org/ruby.git/commit/?id=b734832883 From b734832883e3644af2527bd463de220a0b5794bc Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Thu, 13 Oct 2022 13:42:22 +0900 Subject: Skip utime example with Intel C Compiler suite --- spec/ruby/core/process/times_spec.rb | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/spec/ruby/core/process/times_spec.rb b/spec/ruby/core/process/times_spec.rb index b47189a7e7..d114061eb6 100644 --- a/spec/ruby/core/process/times_spec.rb +++ b/spec/ruby/core/process/times_spec.rb @@ -5,12 +5,16 @@ describe "Process.times" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/process/times_spec.rb#L5 Process.times.should be_kind_of(Process::Tms) end - it "returns current cpu times" do - t = Process.times - user = t.utime + # TODO: Intel C Compiler does not work this example + # http://rubyci.s3.amazonaws.com/icc-x64/ruby-master/log/20221013T030005Z.fail.html.gz + unless RbConfig::CONFIG['CC'].include?("icx") + it "returns current cpu times" do + t = Process.times + user = t.utime - 1 until Process.times.utime > user - Process.times.utime.should > user + 1 until Process.times.utime > user + Process.times.utime.should > user + end end platform_is_not :windows do -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/