1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Skip utime example with Intel C Compiler suite

This commit is contained in:
Hiroshi SHIBATA 2022-10-13 13:42:22 +09:00
parent 1cda414622
commit b734832883
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -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