diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-14 20:46:44 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-14 20:46:44 +0000 |
commit | 637585d912199251c47cc2f578afab877795e317 (patch) | |
tree | d75f194dde386a61b55cf174718c8fdf4e39cb6b | |
parent | e6147745d5c5c2f64154d207f8d3972b1d6675c8 (diff) | |
download | ruby-637585d912199251c47cc2f578afab877795e317.tar.gz |
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
-rw-r--r-- | test/ruby/test_fiber.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/ruby/test_fiber.rb b/test/ruby/test_fiber.rb index 35f77ba693..3f620c69f8 100644 --- a/test/ruby/test_fiber.rb +++ b/test/ruby/test_fiber.rb @@ -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 |