diff options
| author | Stan Lo <stan001212@gmail.com> | 2024-02-16 14:30:22 +0000 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2024-02-19 11:01:30 +0900 |
| commit | 7e577e150a6897074bb5aaafb298b0605f00970f (patch) | |
| tree | 8ba13de1df4a004cb548e868cc5b9c87b222a804 /test | |
| parent | 9ec9910081b5d91becf9d9d8df7ea65c2ccc3a71 (diff) | |
[ruby/irb] Fix `irb:rdbg` for ruby head
(https://github.com/ruby/irb/pull/876)
* Update binding.irb check for Ruby head
With https://github.com/ruby/ruby/pull/9605, backtrace in Ruby head
now has a new format. This commit updates the check for binding.irb
to work with Ruby head.
* Do not include a backtick in error messages and backtraces
[Feature #16495]
---------
https://github.com/ruby/irb/commit/ebffd3d976
Co-authored-by: Yusuke Endoh <mame@ruby-lang.org>
Diffstat (limited to 'test')
| -rw-r--r-- | test/irb/test_context.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/irb/test_context.rb b/test/irb/test_context.rb index 71d4aae907..059c486767 100644 --- a/test/irb/test_context.rb +++ b/test/irb/test_context.rb @@ -72,7 +72,7 @@ module TestIRB expected_output = if RUBY_3_4 [ - :*, /\(irb\):1:in '<top \(required\)>': Foo \(RuntimeError\)\n/, + :*, /\(irb\):1:in '<main>': Foo \(RuntimeError\)\n/, :*, /#<RuntimeError: Foo>\n/, :*, /0$/, :*, /0$/, @@ -107,8 +107,8 @@ module TestIRB expected_output = if RUBY_3_4 [ - :*, /\(irb\):1:in '<top \(required\)>': Foo \(RuntimeError\)\n/, - :*, /\(irb\):2:in '<top \(required\)>': Bar \(RuntimeError\)\n/, + :*, /\(irb\):1:in '<main>': Foo \(RuntimeError\)\n/, + :*, /\(irb\):2:in '<main>': Bar \(RuntimeError\)\n/, :*, /#<RuntimeError: Bar>\n/, ] else @@ -531,7 +531,7 @@ module TestIRB [ :*, /\(irb\):1:in 'fuga': unhandled exception\n/, :*, /\tfrom \(irb\):1:in 'hoge'\n/, - :*, /\tfrom \(irb\):1:in '<top \(required\)>'\n/, + :*, /\tfrom \(irb\):1:in '<main>'\n/, :* ] elsif RUBY_VERSION < '3.0.0' && STDOUT.tty? @@ -569,7 +569,7 @@ module TestIRB [ :*, /\(irb\):1:in 'fuga': A\\xF3B \(RuntimeError\)\n/, :*, /\tfrom \(irb\):1:in 'hoge'\n/, - :*, /\tfrom \(irb\):1:in '<top \(required\)>'\n/, + :*, /\tfrom \(irb\):1:in '<main>'\n/, :* ] elsif RUBY_VERSION < '3.0.0' && STDOUT.tty? |
