ruby-changes:74275
From: Benoit <ko1@a...>
Date: Fri, 28 Oct 2022 04:17:11 +0900 (JST)
Subject: [ruby-changes:74275] 8d7844235c (master): [ruby/irb] Remove unecesary and harmful pend for TruffleRuby in TestRaiseNoBacktraceException
https://git.ruby-lang.org/ruby.git/commit/?id=8d7844235c From 8d7844235cd9ba9836e9eacb74c75d31aaa567b3 Mon Sep 17 00:00:00 2001 From: Benoit Daloze <eregontp@g...> Date: Thu, 27 Oct 2022 20:54:12 +0200 Subject: [ruby/irb] Remove unecesary and harmful pend for TruffleRuby in TestRaiseNoBacktraceException * Specifically the second one causes `$HOME` to be unset, which breaks `File.expand_path('~')`. https://github.com/ruby/irb/commit/61963305f5 --- test/irb/test_raise_no_backtrace_exception.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/irb/test_raise_no_backtrace_exception.rb b/test/irb/test_raise_no_backtrace_exception.rb index 530adc0cbf..5f11c9f3dc 100644 --- a/test/irb/test_raise_no_backtrace_exception.rb +++ b/test/irb/test_raise_no_backtrace_exception.rb @@ -4,7 +4,6 @@ require 'test/unit' https://github.com/ruby/ruby/blob/trunk/test/irb/test_raise_no_backtrace_exception.rb#L4 module TestIRB class TestRaiseNoBacktraceException < Test::Unit::TestCase def test_raise_exception - pend if RUBY_ENGINE == 'truffleruby' bundle_exec = ENV.key?('BUNDLE_GEMFILE') ? ['-rbundler/setup'] : [] assert_in_out_err(bundle_exec + %w[-rirb -W0 -e IRB.start(__FILE__) -- -f --], <<-IRB, /Exception: foo/, []) e = Exception.new("foo") @@ -23,7 +22,6 @@ IRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_raise_no_backtrace_exception.rb#L22 end def test_raise_exception_with_different_encoding_containing_invalid_byte_sequence - pend if RUBY_ENGINE == 'truffleruby' backup_home = ENV["HOME"] Dir.mktmpdir("test_irb_raise_no_backtrace_exception_#{$$}") do |tmpdir| ENV["HOME"] = tmpdir -- cgit v1.2.3 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/