Skip to content

Commit

Permalink
Propagate JIT skip to all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
k0kubun committed Mar 7, 2020
1 parent f991340 commit 9745e90
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
8 changes: 7 additions & 1 deletion test/lib/jit_support.rb
Expand Up @@ -8,6 +8,12 @@ module JITSupport
%r[\A.*/bin/intel64/icc\b],
%r[\A/opt/developerstudio\d+\.\d+/bin/cc\z],
]
# freebsd12: cc1 internal failure https://rubyci.org/logs/rubyci.s3.amazonaws.com/freebsd12/ruby-master/log/20200306T103003Z.fail.html.gz
# rhel8: one or more PCH files were found, but they were invalid https://rubyci.org/logs/rubyci.s3.amazonaws.com/rhel8/ruby-master/log/20200306T153003Z.fail.html.gz
PENDING_RUBYCI_NICKNAMES = %w[
freebsd12
rhel8
]

module_function
# Run Ruby script with --jit-wait (Synchronous JIT compilation).
Expand Down Expand Up @@ -47,7 +53,7 @@ def supported?
return @supported if defined?(@supported)
@supported = UNSUPPORTED_COMPILERS.all? do |regexp|
!regexp.match?(RbConfig::CONFIG['MJIT_CC'])
end && RbConfig::CONFIG["MJIT_SUPPORT"] != 'no'
end && RbConfig::CONFIG["MJIT_SUPPORT"] != 'no' && !PENDING_RUBYCI_NICKNAMES.include?(ENV['RUBYCI_NICKNAME'])
end

def remove_mjit_logs(stderr)
Expand Down
7 changes: 0 additions & 7 deletions test/ruby/test_jit.rb
Expand Up @@ -43,13 +43,6 @@ def setup
skip 'JIT seems not supported on this platform'
end

# freebsd12: cc1 internal failure https://rubyci.org/logs/rubyci.s3.amazonaws.com/freebsd12/ruby-master/log/20200306T103003Z.fail.html.gz
# rhel8: one or more PCH files were found, but they were invalid https://rubyci.org/logs/rubyci.s3.amazonaws.com/rhel8/ruby-master/log/20200306T153003Z.fail.html.gz
case ENV['RUBYCI_NICKNAME']
when 'freebsd12', 'rhel8'
skip 'investigating failures on RubyCI'
end

# ruby -w -Itest/lib test/ruby/test_jit.rb
if $VERBOSE && !defined?(@@at_exit_hooked)
at_exit do
Expand Down

0 comments on commit 9745e90

Please sign in to comment.