Skip to content

Commit

Permalink
Remove some obsolete rbx test code
Browse files Browse the repository at this point in the history
  • Loading branch information
minad committed Sep 3, 2023
1 parent 75153a5 commit 5f7a7ff
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions test/core/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,8 @@ def assert_ruby_error(error, from, source, options = {})
end

def assert_backtrace(ex, from)
if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
# HACK: Rubinius stack trace sometimes has one entry more
if ex.backtrace[0] !~ /^#{Regexp.escape from}/
ex.backtrace[1] =~ /([^\s]+:\d+)/
assert_equal from, $1
end
else
ex.backtrace[0] =~ /([^\s]+:\d+)/
assert_equal from, $1
end
ex.backtrace[0] =~ /([^\s]+:\d+)/
assert_equal from, $1
end

def assert_ruby_syntax_error(from, source, options = {})
Expand Down

0 comments on commit 5f7a7ff

Please sign in to comment.