summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2020-11-05 18:13:56 +0100
committeraycabta <aycabta@gmail.com>2020-12-17 20:23:27 +0900
commit336fe648b08e7bd062dc8d4cc11781dd8d617f11 (patch)
tree70c7957abc3568214ea2e604e58e685b8eecd68b
parentb5effe07bd7965a3d90c36509025c4231f306741 (diff)
[ruby/irb] Skip the few failing tests on TruffleRuby
https://github.com/ruby/irb/commit/22717844c0
-rw-r--r--test/irb/test_context.rb2
-rw-r--r--test/irb/test_raise_no_backtrace_exception.rb1
2 files changed, 3 insertions, 0 deletions
diff --git a/test/irb/test_context.rb b/test/irb/test_context.rb
index a57557af94..ef7e2c5b69 100644
--- a/test/irb/test_context.rb
+++ b/test/irb/test_context.rb
@@ -68,6 +68,7 @@ module TestIRB
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
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 2174600082..699990f62d 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'
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")