1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/envutil.rb (assert_normal_exit): signal description

refined.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-05-25 16:19:05 +00:00
parent 80b0ef5706
commit ac6ce30aec
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Mon May 26 01:17:54 2008 Tanaka Akira <akr@fsij.org>
* test/ruby/envutil.rb (assert_normal_exit): signal description
refined.
Mon May 26 00:52:52 2008 Akinori MUSHA <knu@iDaemons.org>
* hash.c (env_each_key, env_each_value, env_reject_bang)

View file

@ -92,10 +92,12 @@ module Test
sigdesc = "SIG#{signame} (#{sigdesc})"
end
if msg.empty?
full_message = build_message(message, "killed by ?", sigdesc)
full_message = build_message(message, "killed by ?",
AssertionMessage::Literal.new(sigdesc))
else
msg << "\n" if /\n\z/ !~ msg
full_message = build_message(message, "killed by ?\n?", sigdesc,
full_message = build_message(message, "killed by ?\n?",
AssertionMessage::Literal.new(sigdesc),
AssertionMessage::Literal.new(msg.gsub(/^/, '| ')))
end
end