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:
nobu 2013-11-15 22:14:09 +00:00
parent 006eca88cf
commit 6e3184e25a
2 changed files with 38 additions and 0 deletions

View file

@ -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