summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/ruby/envutil.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/envutil.rb b/test/ruby/envutil.rb
index 90a39e7140..9bf4b6cd56 100644
--- a/test/ruby/envutil.rb
+++ b/test/ruby/envutil.rb
@@ -406,7 +406,8 @@ eom
cmd = [
'END {STDERR.puts '"#{token_dump}"'"FINAL=#{Memory::Status.new}"}',
prepare,
- 'STDERR.puts('"#{token_dump}"'"START=#{$initial_size = Memory::Status.new}")',
+ 'STDERR.puts('"#{token_dump}"'"START=#{$initial_status = Memory::Status.new}")',
+ '$initial_size = $initial_status.size',
code,
'GC.start',
].join("\n")