summaryrefslogtreecommitdiff
path: root/spec/ruby
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2022-10-13 13:42:22 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2022-10-13 13:42:22 +0900
commitb734832883e3644af2527bd463de220a0b5794bc (patch)
tree4d0865080636f21e3afa1925d5ee2e1b600d550c /spec/ruby
parent1cda4146224e857f6258241bbb30d9358ce2d6c7 (diff)
Skip utime example with Intel C Compiler suite
Diffstat (limited to 'spec/ruby')
-rw-r--r--spec/ruby/core/process/times_spec.rb14
1 files changed, 9 insertions, 5 deletions
diff --git a/spec/ruby/core/process/times_spec.rb b/spec/ruby/core/process/times_spec.rb
index b47189a7e7..d114061eb6 100644
--- a/spec/ruby/core/process/times_spec.rb
+++ b/spec/ruby/core/process/times_spec.rb
@@ -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