summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-04-11 01:49:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-04-11 01:49:04 +0000
commit48d5eb3d406a46beb53069f1060ae385a23a897b (patch)
tree943d6095aaa33eb2821697e553de0fec5bd2a350
parent4b86cf6e9854a27f8124dc8de586630693c2a3a9 (diff)
test_array.rb: do minor GC
* test/ruby/test_array.rb (test_shared_marking): do minor GC to reduce WB-missed messages. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/ruby/test_array.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb
index a73c9b4fb1..df4ce19a5a 100644
--- a/test/ruby/test_array.rb
+++ b/test/ruby/test_array.rb
@@ -2431,8 +2431,10 @@ class TestArray < Test::Unit::TestCase
def test_shared_marking
reduce = proc do |s|
- s.gsub(/(verify_internal_consistency_reachable_i:\sWB\smiss\s\S+\s\(T_ARRAY\)\s->\s)\S+\s\(proc\)\n
- \K(?:\1\S+\s\(proc\)\n)*/x, "...\n")
+ s.gsub(/(verify_internal_consistency_reachable_i:\sWB\smiss\s\S+\s\(T_ARRAY\)\s->\s)\S+\s\((proc|T_NONE)\)\n
+ \K(?:\1\S+\s\(\2\)\n)*/x) do
+ "...(snip #{$&.count("\n")} lines)...\n"
+ end
end
assert_normal_exit(<<-EOS, '[Bug #9718]', timeout: 5, stdout_filter: reduce)
queue = []
@@ -2440,6 +2442,7 @@ class TestArray < Test::Unit::TestCase
100_000.times do
queue << lambda{}
end
+ GC.start(full_mark: false, immediate_sweep: true)
GC.verify_internal_consistency
queue.shift.call
end