Skip to content

Commit

Permalink
Merge pull request #1724 from ruby/stop-tracing
Browse files Browse the repository at this point in the history
Stop trace object allocations during test
  • Loading branch information
soutaro committed Jan 19, 2024
1 parent 3c16a5f commit 1678019
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/stdlib/ObjectSpace_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,15 @@ def test_trace_object_allocations_clear
def test_trace_object_allocations_debug_start
assert_send_type "() -> void",
ObjectSpace, :trace_object_allocations_debug_start
ensure
ObjectSpace.trace_object_allocations_stop
end

def test_trace_object_allocations_start
assert_send_type "() -> void",
ObjectSpace, :trace_object_allocations_start
ensure
ObjectSpace.trace_object_allocations_stop
end

def test_trace_object_allocations_stop
Expand Down

0 comments on commit 1678019

Please sign in to comment.