ruby-changes:64242
From: Benoit <ko1@a...>
Date: Thu, 17 Dec 2020 20:24:49 +0900 (JST)
Subject: [ruby-changes:64242] 336fe648b0 (master): [ruby/irb] Skip the few failing tests on TruffleRuby
https://git.ruby-lang.org/ruby.git/commit/?id=336fe648b0 From 336fe648b08e7bd062dc8d4cc11781dd8d617f11 Mon Sep 17 00:00:00 2001 From: Benoit Daloze <eregontp@g...> Date: Thu, 5 Nov 2020 18:13:56 +0100 Subject: [ruby/irb] Skip the few failing tests on TruffleRuby https://github.com/ruby/irb/commit/22717844c0 diff --git a/test/irb/test_context.rb b/test/irb/test_context.rb index a57557a..ef7e2c5 100644 --- a/test/irb/test_context.rb +++ b/test/irb/test_context.rb @@ -68,6 +68,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L68 end def test_evaluate_with_encoding_error_without_lineno + skip if RUBY_ENGINE == 'truffleruby' assert_raise_with_message(EncodingError, /invalid symbol/) { @context.evaluate(%q[{"\xAE": 1}], 1) # The backtrace of this invalid encoding hash doesn't contain lineno. @@ -75,6 +76,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L76 end def test_evaluate_with_onigmo_warning + skip if RUBY_ENGINE == 'truffleruby' assert_warning("(irb):1: warning: character class has duplicated range: /[aa]/\n") do @context.evaluate('/[aa]/', 1) end diff --git a/test/irb/test_raise_no_backtrace_exception.rb b/test/irb/test_raise_no_backtrace_exception.rb index 2174600..699990f 100644 --- a/test/irb/test_raise_no_backtrace_exception.rb +++ b/test/irb/test_raise_no_backtrace_exception.rb @@ -4,6 +4,7 @@ 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 + skip 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") -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/