aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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 7e160817c8..2a7c1b507f 100644
--- a/test/ruby/test_gc.rb
+++ b/test/ruby/test_gc.rb
@@ -259,7 +259,7 @@ class TestGc < Test::Unit::TestCase
# allocate objects until need_major_by is set or major GC happens
major_count = GC.stat(:major_gc_count)
objects = []
- while GC.stat(:major_gc_count) == major_count && GC.latest_gc_info(:need_major_by).nil?
+ while GC.latest_gc_info(:need_major_by).nil?
objects.append(100.times.map { '*' })
end