Skip to content

Commit

Permalink
Skip utime example with Intel C Compiler suite
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Oct 13, 2022
1 parent 1cda414 commit b734832
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions spec/ruby/core/process/times_spec.rb
Expand Up @@ -5,12 +5,16 @@
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
Expand Down

0 comments on commit b734832

Please sign in to comment.