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,6 +5,9 @@ describe "Process.times" do
|
||||||
Process.times.should be_kind_of(Process::Tms)
|
Process.times.should be_kind_of(Process::Tms)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# 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
|
it "returns current cpu times" do
|
||||||
t = Process.times
|
t = Process.times
|
||||||
user = t.utime
|
user = t.utime
|
||||||
|
@ -12,6 +15,7 @@ describe "Process.times" do
|
||||||
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
|
||||||
it "uses getrusage when available to improve precision beyond milliseconds" do
|
it "uses getrusage when available to improve precision beyond milliseconds" do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue