Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/console/frame_block_identifier_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ def test_frame_block_identifier
/ 15\| end/,
/ 16\| end/,
/=>\#0\tWhatever\#some_method at .*/,
/ \#1\tblock in Kernel\#loop at <internal:kernel>:168/,
/ \# and 2 frames \(use `bt' command for all frames\)/,
/ \#1\t.*/,
/ \# and (?:2|3) frames \(use `bt' command for all frames\)/,
//,
/Stop by \#0 BP \- Line .*/
])
Expand Down
2 changes: 1 addition & 1 deletion test/console/nested_break_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def test_multiple_nested_break
assert_line_num 2
type 'p foo(142)'
type 'bt'
assert_line_text(/\#7\s+<main>/) # TODO: can be changed
assert_line_text(/\#\d+\s+<main>/)

type 'c'
assert_line_text(/143/)
Expand Down
28 changes: 28 additions & 0 deletions test/console/rescue_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# frozen_string_literal: true

require_relative '../support/console_test_case'

module DEBUGGER__
class RescueTest < ConsoleTestCase
def program
<<~RUBY
1| 1.times do
2| begin
3| raise
4| rescue
5| p :ok
6| end
7| end
RUBY
end

def test_rescue
debug_code program, remote: false do
type 's'
type 's'
type 'c'
end
end
end if RUBY_VERSION.to_f >= 3.5
end

1 change: 0 additions & 1 deletion test/console/trap_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ def test_sigint
debug_code program, remote: false do
type 'b 3'
type 'c'
assert_line_num 2
assert_line_text(/is registered as SIGINT handler/)
type 'sigint'
assert_line_num 3
Expand Down
Loading