mirror of
https://github.com/ruby/ruby.git
synced 2025-09-19 18:43:59 +02:00
envutil.rb: crash report on Mac OS X
* test/ruby/envutil.rb (EnvUtil.diagnostic_reports): find crash report on Mac OS X. * test/ruby/envutil.rb (Test::Unit::Assertions::FailDesc): include crash report on Mac OS X. * test/ruby/envutil.rb (Test::Unit::Assertions#assert_in_out_err): remove crash reports if exist. * test/ruby/test_process.rb (TestProcess#test_status_kill): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
006eca88cf
commit
6e3184e25a
2 changed files with 38 additions and 0 deletions
|
@ -1190,6 +1190,7 @@ class TestProcess < Test::Unit::TestCase
|
|||
pid = spawn(RUBY, "foo")
|
||||
Thread.new { sleep 1; Process.kill(:SIGQUIT, pid) }
|
||||
Process.wait(pid)
|
||||
t = Time.now
|
||||
s = $?
|
||||
assert_equal([false, true, false],
|
||||
[s.exited?, s.signaled?, s.stopped?],
|
||||
|
@ -1201,6 +1202,7 @@ class TestProcess < Test::Unit::TestCase
|
|||
s.inspect])
|
||||
assert_equal(false, s.exited?)
|
||||
assert_equal(nil, s.success?)
|
||||
EnvUtil.diagnostic_reports("QUIT", RUBY, pid, t)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue