1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

increase timeout (with full GC)

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2015-10-28 19:03:31 +00:00
parent 875b7d9e66
commit 39715ad236
2 changed files with 4 additions and 3 deletions

View file

@ -346,8 +346,9 @@ class TestGc < Test::Unit::TestCase
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

View file

@ -1364,8 +1364,8 @@ class TestProcess < Test::Unit::TestCase
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?]")