ruby-changes:40250
From: naruse <ko1@a...>
Date: Thu, 29 Oct 2015 04:04:00 +0900 (JST)
Subject: [ruby-changes:40250] naruse:r52331 (trunk): increase timeout (with full GC)
naruse 2015-10-29 04:03:31 +0900 (Thu, 29 Oct 2015) New Revision: 52331 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52331 Log: increase timeout (with full GC) Modified files: trunk/test/ruby/test_gc.rb trunk/test/ruby/test_process.rb Index: test/ruby/test_gc.rb =================================================================== --- test/ruby/test_gc.rb (revision 52330) +++ test/ruby/test_gc.rb (revision 52331) @@ -346,8 +346,9 @@ class TestGc < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_gc.rb#L346 ObjectSpace.define_finalizer(Object.new, f) end end; - opts = {signal: :SEGV} + opts = {signal: :SEGV, timeout: 60} opts[:rlimit_core] = 0 if defined?(Process::RLIMIT_CORE) + GC.start(full_mark: true, immediate_sweep: true) out, err, status = assert_in_out_err(["-e", src], "", [], [], bug10595, opts) do |*result| break result end Index: test/ruby/test_process.rb =================================================================== --- test/ruby/test_process.rb (revision 52330) +++ test/ruby/test_process.rb (revision 52331) @@ -1364,8 +1364,8 @@ class TestProcess < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_process.rb#L1364 return unless Signal.list.include?("QUIT") with_tmpchdir do - GC.start - s = assert_in_out_err([], "Process.kill(:SIGQUIT, $$);sleep 30", //, //, rlimit_core: 0) + GC.start(full_mark: true, immediate_sweep: true) + s = assert_in_out_err([], "Process.kill(:SIGQUIT, $$);sleep 30", //, //, rlimit_core: 0, timeout: 60) assert_equal([false, true, false, nil], [s.exited?, s.signaled?, s.stopped?, s.success?], "[s.exited?, s.signaled?, s.stopped?, s.success?]") -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/