summaryrefslogtreecommitdiff
path: root/test/ruby/test_gc.rb
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2020-05-22 11:09:08 +0900
committerYusuke Endoh <mame@ruby-lang.org>2020-05-22 11:12:40 +0900
commit74cd607ca049cdcd7a42f2d42398ef8b4d7d71fc (patch)
tree9543f3c043a093bdc2e507a62c27332fe7f6a000 /test/ruby/test_gc.rb
parent79d9528ddca1dfe2dd99287dc88fd7c2b30f7137 (diff)
Run major GC three times to make sure the minor GC reason
Same as 02705b27be207fce57bd0253251f81108c7ed57b http://ci.rvm.jp/results/trunk-random1@phosphorus-docker/2955433 ``` 1) TestGc#test_start_full_mark [/tmp/ruby/v3/src/trunk-random1/test/ruby/test_gc.rb:61]: Expected :oldmalloc to be nil. ```
Diffstat (limited to 'test/ruby/test_gc.rb')
-rw-r--r--test/ruby/test_gc.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb
index 53777c61a8..f18cd60ba5 100644
--- a/test/ruby/test_gc.rb
+++ b/test/ruby/test_gc.rb
@@ -56,7 +56,7 @@ class TestGc < Test::Unit::TestCase
return unless use_rgengc?
skip 'stress' if GC.stress
- GC.start # full mark and next time it should be minor mark
+ 3.times { GC.start } # full mark and next time it should be minor mark
GC.start(full_mark: false)
assert_nil GC.latest_gc_info(:major_by)