summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/objspace/test_objspace.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/objspace/test_objspace.rb b/test/objspace/test_objspace.rb
index 8c7e922b2e..4757c26630 100644
--- a/test/objspace/test_objspace.rb
+++ b/test/objspace/test_objspace.rb
@@ -281,6 +281,8 @@ class TestObjSpace < Test::Unit::TestCase
end
def test_dump_flags
+ # Ensure that the fstring is promoted to old generation
+ 4.times { GC.start }
info = ObjectSpace.dump("foo".freeze)
assert_match(/"wb_protected":true, "old":true/, info)
assert_match(/"fstring":true/, info)