diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-15 22:14:09 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-15 22:14:09 +0000 |
commit | 6e3184e25a8294e25214faebec4b072b64ab15cb (patch) | |
tree | 49d4ca13da7a1331962e638fec2a32555ff38165 /test/ruby/test_process.rb | |
parent | 006eca88cf7dbd39d9197fd801f015f7c98812fd (diff) |
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
Diffstat (limited to 'test/ruby/test_process.rb')
-rw-r--r-- | test/ruby/test_process.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 0c2a662677..3edc089177 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -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 |