Skip to content

Commit

Permalink
Ignore warnings from concurrent-ruby on JRuby 9.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
philr committed Jun 22, 2023
1 parent 01cb654 commit f32fe2d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/test_utils.rb
Expand Up @@ -435,6 +435,8 @@ def assert_sub_process_returns(expected_lines, code, load_path = [], required =
# https://github.com/tzinfo/tzinfo/runs/1664655982#step:8:1893
#
# Ignore untaint deprecation warnings from Bundler 1 on Ruby 3.0.
#
# Ignore method redefined warnings from concurrent-ruby on JRuby 9.4.
actual_lines = actual_lines.reject do |l|
l.start_with?('Gem::Specification#rubyforge_project= called from') ||
l.start_with?('NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement.') ||
Expand All @@ -446,7 +448,8 @@ def assert_sub_process_returns(expected_lines, code, load_path = [], required =
l.start_with?('WARNING: All illegal access operations will be denied in a future release') ||
l.start_with?('WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations') ||
l.start_with?('io/console on JRuby shells out to stty for most operations') ||
l =~ /\/bundler-1\..*\/lib\/bundler\/.*\.rb:\d+: warning: (Object|Pathname)#untaint is deprecated and will be removed in Ruby 3\.2\.\z/
l =~ /\/bundler-1\..*\/lib\/bundler\/.*\.rb:\d+: warning: (Object|Pathname)#untaint is deprecated and will be removed in Ruby 3\.2\.\z/ ||
l =~ /\/lib\/concurrent-ruby\/concurrent\/executor\/java_thread_pool_executor\.rb:\d+: warning: method redefined; discarding old to_(f|int)\z/
end

if RUBY_ENGINE == 'jruby' && ENV['_JAVA_OPTIONS'] && actual_lines.first == "Picked up _JAVA_OPTIONS: #{ENV['_JAVA_OPTIONS']}"
Expand Down

0 comments on commit f32fe2d

Please sign in to comment.