mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/envutil.rb (assert_normal_exit): show pid when fail.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f76ee72013
commit
17fe6a652f
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Sat May 31 12:02:23 2008 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* test/ruby/envutil.rb (assert_normal_exit): show pid when fail.
|
||||||
|
|
||||||
Fri May 30 23:55:56 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
|
Fri May 30 23:55:56 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
|
||||||
|
|
||||||
* test/ruby/test_rubyoptions.rb: add a test of RUBY_DESCRIPTION.
|
* test/ruby/test_rubyoptions.rb: add a test of RUBY_DESCRIPTION.
|
||||||
|
|
|
@ -92,11 +92,13 @@ module Test
|
||||||
sigdesc = "SIG#{signame} (#{sigdesc})"
|
sigdesc = "SIG#{signame} (#{sigdesc})"
|
||||||
end
|
end
|
||||||
if msg.empty?
|
if msg.empty?
|
||||||
full_message = build_message(message, "killed by ?",
|
full_message = build_message(message, "pid ? killed by ?",
|
||||||
|
pid,
|
||||||
AssertionMessage::Literal.new(sigdesc))
|
AssertionMessage::Literal.new(sigdesc))
|
||||||
else
|
else
|
||||||
msg << "\n" if /\n\z/ !~ msg
|
msg << "\n" if /\n\z/ !~ msg
|
||||||
full_message = build_message(message, "killed by ?\n?",
|
full_message = build_message(message, "pid ? killed by ?\n?",
|
||||||
|
pid,
|
||||||
AssertionMessage::Literal.new(sigdesc),
|
AssertionMessage::Literal.new(sigdesc),
|
||||||
AssertionMessage::Literal.new(msg.gsub(/^/, '| ')))
|
AssertionMessage::Literal.new(msg.gsub(/^/, '| ')))
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue