diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-27 20:47:17 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-27 20:47:17 +0000 |
commit | 2d53edd923f2bb72efa6d17dcf6ed746f1131920 (patch) | |
tree | 3fce123c2eb80812e19487bd9d1cab8d35edfe4b /test | |
parent | 75a9a6ee228adc01cf3adb3f1b643acb89b83fe8 (diff) | |
download | ruby-2d53edd923f2bb72efa6d17dcf6ed746f1131920.tar.gz |
dumping core may take too much time for CI
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_gc.rb | 8 | ||||
-rw-r--r-- | test/ruby/test_process.rb | 3 |
2 files changed, 9 insertions, 2 deletions
diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb index eb34990c4d..3e3e25d437 100644 --- a/test/ruby/test_gc.rb +++ b/test/ruby/test_gc.rb @@ -346,7 +346,13 @@ class TestGc < Test::Unit::TestCase ObjectSpace.define_finalizer(Object.new, f) end end; - out, err, status = assert_in_out_err(["-e", src], "", [], [], bug10595, signal: :SEGV) do |*result| + opts = {signal: :SEGV} + begin + cur, max = Process.getrlimit(:CORE) + opts[:rlimit_core] = [0,max] + rescue NotImplementedError + end + out, err, status = assert_in_out_err(["-e", src], "", [], [], bug10595, opts) do |*result| break result end unless /mswin|mingw/ =~ RUBY_PLATFORM diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 6512ef2dd7..dd4c2c2a51 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1364,7 +1364,8 @@ class TestProcess < Test::Unit::TestCase return unless Signal.list.include?("QUIT") with_tmpchdir do - s = assert_in_out_err([], "Process.kill(:SIGQUIT, $$);sleep 30", //, //) + cur, max = Process.getrlimit(:CORE) + s = assert_in_out_err([], "Process.kill(:SIGQUIT, $$);sleep 30", //, //, :rlimit_core=>[0,max]) assert_equal([false, true, false, nil], [s.exited?, s.signaled?, s.stopped?, s.success?], "[s.exited?, s.signaled?, s.stopped?, s.success?]") |