diff --git a/test/ruby/test_string_memory.rb b/test/ruby/test_string_memory.rb index 3952d10343..249aa3a269 100644 --- a/test/ruby/test_string_memory.rb +++ b/test/ruby/test_string_memory.rb @@ -18,7 +18,14 @@ class TestStringMemory < Test::Unit::TestCase end end - return allocations + return allocations.map do |instance| + [ + ObjectSpace.allocation_sourcefile(instance), + ObjectSpace.allocation_sourceline(instance), + instance.class, + instance, + ] + end ensure GC.enable end