Skip to content

Commit

Permalink
[ruby/irb] Suppress warning for test which uses a locale non-existing…
Browse files Browse the repository at this point in the history
… on GitHub Actions
  • Loading branch information
eregon authored and matzbot committed Oct 27, 2022
1 parent 8d78442 commit bb7067c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/irb/test_raise_no_backtrace_exception.rb
Expand Up @@ -38,6 +38,8 @@ def raise_euc_with_invalid_byte_sequence
end
env = {}
%w(LC_MESSAGES LC_ALL LC_CTYPE LANG).each {|n| env[n] = "ja_JP.UTF-8" }
# TruffleRuby warns when the locale does not exist
env['TRUFFLERUBYOPT'] = "#{ENV['TRUFFLERUBYOPT']} --log.level=SEVERE" if RUBY_ENGINE == 'truffleruby'
args = [env] + bundle_exec + %W[-rirb -C #{tmpdir} -W0 -e IRB.start(__FILE__) -- -f --]
error = /`raise_euc_with_invalid_byte_sequence': あ\\xFF \(RuntimeError\)/
assert_in_out_err(args, <<~IRB, error, [], encoding: "UTF-8")
Expand Down

0 comments on commit bb7067c

Please sign in to comment.