diff options
author | Benoit Daloze <eregontp@gmail.com> | 2022-10-27 21:10:39 +0200 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-10-27 19:16:52 +0000 |
commit | bb7067cbdfe1cf1b8bbd742e87f41c9707ddb2d2 (patch) | |
tree | 271bb67faf414727c211fa7f58c65bcf0bf0b81f /test | |
parent | 8d7844235cd9ba9836e9eacb74c75d31aaa567b3 (diff) |
[ruby/irb] Suppress warning for test which uses a locale non-existing on GitHub Actions
Diffstat (limited to 'test')
-rw-r--r-- | test/irb/test_raise_no_backtrace_exception.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/irb/test_raise_no_backtrace_exception.rb b/test/irb/test_raise_no_backtrace_exception.rb index 5f11c9f3dc..a532d8b3ec 100644 --- a/test/irb/test_raise_no_backtrace_exception.rb +++ b/test/irb/test_raise_no_backtrace_exception.rb @@ -38,6 +38,8 @@ IRB 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") |