Skip to content

Commit e30c6ad

Browse files
committed
Add a test for the previous commit
1 parent 4d2e8cb commit e30c6ad

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/ruby/test_backtrace.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,4 +454,10 @@ def (foo::Bar).baz = raise
454454
foo::Bar.baz
455455
end;
456456
end
457+
458+
def test_backtrace_internal_frame
459+
backtrace = tap { break caller_locations(0) }
460+
assert_equal(__FILE__, backtrace[1].path) # not "<internal:kernel>"
461+
assert_equal("Kernel#tap", backtrace[1].label)
462+
end
457463
end

0 commit comments

Comments
 (0)