From b734832883e3644af2527bd463de220a0b5794bc Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA 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(-) (limited to 'spec/ruby/core') 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 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.3