diff options
| author | Dylan Thacker-Smith <Dylan.Smith@shopify.com> | 2019-09-27 01:10:13 -0400 |
|---|---|---|
| committer | Jeremy Evans <code@jeremyevans.net> | 2023-12-28 08:58:21 -0800 |
| commit | 2b96737636e1c96fedda83895ef32e19a914e310 (patch) | |
| tree | db427d1d7994824a49627e70cc7a9370eb8a0dcf /test | |
| parent | e81a5453e3c76c4348da042d86debde7689254fe (diff) | |
Fix use of the rb_profile_frames start parameter
Previously, it was decrementing the start argument until it reached
zero without actually changing the control frame pointer.
[Bug #14607]
Diffstat (limited to 'test')
| -rw-r--r-- | test/-ext-/debug/test_profile_frames.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/-ext-/debug/test_profile_frames.rb b/test/-ext-/debug/test_profile_frames.rb index b44b14d851..bd819266df 100644 --- a/test/-ext-/debug/test_profile_frames.rb +++ b/test/-ext-/debug/test_profile_frames.rb @@ -236,4 +236,8 @@ class TestProfileFrames < Test::Unit::TestCase a end; end + + def test_start + assert_equal Bug::Debug.profile_frames(0, 10).tap(&:shift), Bug::Debug.profile_frames(1, 9) + end end |
