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) Process.times.should be_kind_of(Process::Tms)
end end
it "returns current cpu times" do # TODO: Intel C Compiler does not work this example
t = Process.times # http://rubyci.s3.amazonaws.com/icc-x64/ruby-master/log/20221013T030005Z.fail.html.gz
user = t.utime unless RbConfig::CONFIG['CC'].include?("icx")
it "returns current cpu times" do
t = Process.times
user = t.utime
1 until Process.times.utime > user 1 until Process.times.utime > user
Process.times.utime.should > user Process.times.utime.should > user
end
end end
platform_is_not :windows do platform_is_not :windows do