From 8d7844235cd9ba9836e9eacb74c75d31aaa567b3 Mon Sep 17 00:00:00 2001 From: Benoit Daloze 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(-) (limited to 'test') 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' 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 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