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:
parent
1cda414622
commit
b734832883
1 changed files with 9 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue