diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-29 07:41:20 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-29 07:41:20 +0000 |
commit | d8008fc29dd0551c7fa5625c91b7eae923d62939 (patch) | |
tree | 04db02f4a6513c716005f12d1236a7a4b1a6e25c | |
parent | 1ae3e6f3ce9f16c49d0584e0ad3dc3e709cc4a81 (diff) | |
download | ruby-d8008fc29dd0551c7fa5625c91b7eae923d62939.tar.gz |
clock_gettime_spec.rb: add more platform guards for RubyCI
`Errno::EINVAL: Invalid argument - clock_gettime` could occur even on Linux.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | spec/ruby/core/process/clock_gettime_spec.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/ruby/core/process/clock_gettime_spec.rb b/spec/ruby/core/process/clock_gettime_spec.rb index d743cea36d..a81919ddfe 100644 --- a/spec/ruby/core/process/clock_gettime_spec.rb +++ b/spec/ruby/core/process/clock_gettime_spec.rb @@ -1,7 +1,10 @@ require_relative '../../spec_helper' describe "Process.clock_gettime" do - platform_is_not :windows, :solaris do + # This does not succeed with some platforms: + # RHEL: https://rubyci.org/logs/rubyci.s3.amazonaws.com/rhel_zlinux/ruby-trunk/log/20181229T063303Z.fail.html.gz + # Solaris: https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable11x/ruby-trunk/log/20181229T002409Z.fail.html.gz + platform_is_not :windows, :linux, :solaris do it 'can be called with all declared clocks' do Process.constants.select { |c| c.to_s.start_with?('CLOCK_') }.each do |c| Process.clock_gettime(Process.const_get(c)).should be_an_instance_of(Float) |