From 1678019db2ff9c04528b4a95c67507ea15c88db9 Mon Sep 17 00:00:00 2001 From: Soutaro Matsumoto Date: Fri, 19 Jan 2024 02:10:08 +0000 Subject: [PATCH] Merge pull request #1724 from ruby/stop-tracing Stop trace object allocations during test --- test/stdlib/ObjectSpace_test.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/stdlib/ObjectSpace_test.rb b/test/stdlib/ObjectSpace_test.rb index 5903e03d9..3ae6be4c0 100644 --- a/test/stdlib/ObjectSpace_test.rb +++ b/test/stdlib/ObjectSpace_test.rb @@ -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