Skip to content

Commit

Permalink
Merge pull request #135 from eregon/add-truffleruby-in-ci
Browse files Browse the repository at this point in the history
Add TruffleRuby in CI
  • Loading branch information
aycabta authored Dec 11, 2020
2 parents 39daef7 + 2271784 commit 21bf1e1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ rvm:
- 2.6.6
- 2.7.2
- ruby-head
- truffleruby-head
before_install:
- yes | gem update --system

Expand Down
2 changes: 2 additions & 0 deletions test/irb/test_context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,15 @@ def test_evaluate_with_exception
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.
}
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
Expand Down
1 change: 1 addition & 0 deletions test/irb/test_raise_no_backtrace_exception.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
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")
Expand Down

0 comments on commit 21bf1e1

Please sign in to comment.