test_fiber.rb: remove core
* test/ruby/test_fiber.rb (TestFiber#invoke_rec): remove core dump files by stack overflow. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e6147745d5
commit
637585d912
@ -1,6 +1,7 @@
|
||||
require 'test/unit'
|
||||
require 'fiber'
|
||||
require 'continuation'
|
||||
require 'tmpdir'
|
||||
require_relative './envutil'
|
||||
|
||||
class TestFiber < Test::Unit::TestCase
|
||||
@ -282,7 +283,9 @@ class TestFiber < Test::Unit::TestCase
|
||||
env = {}
|
||||
env['RUBY_FIBER_VM_STACK_SIZE'] = vm_stack_size.to_s if vm_stack_size
|
||||
env['RUBY_FIBER_MACHINE_STACK_SIZE'] = machine_stack_size.to_s if machine_stack_size
|
||||
out, err = EnvUtil.invoke_ruby([env, '-e', script], '', true, true)
|
||||
out, err = Dir.mktmpdir("test_fiber") {|tmpdir|
|
||||
EnvUtil.invoke_ruby([env, '-e', script], '', true, true, chdir: tmpdir)
|
||||
}
|
||||
use_length ? out.length : out
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user