From 17fe6a652f2e6e465f862a2054c1f294a2d16ed5 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 31 May 2008 03:03:24 +0000 Subject: [PATCH] * 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 --- ChangeLog | 4 ++++ test/ruby/envutil.rb | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a1d6ed0701..4f749a9439 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sat May 31 12:02:23 2008 Tanaka Akira + + * test/ruby/envutil.rb (assert_normal_exit): show pid when fail. + Fri May 30 23:55:56 2008 Kazuhiro NISHIYAMA * test/ruby/test_rubyoptions.rb: add a test of RUBY_DESCRIPTION. diff --git a/test/ruby/envutil.rb b/test/ruby/envutil.rb index acaed7710d..163e77d576 100644 --- a/test/ruby/envutil.rb +++ b/test/ruby/envutil.rb @@ -92,11 +92,13 @@ module Test sigdesc = "SIG#{signame} (#{sigdesc})" end if msg.empty? - full_message = build_message(message, "killed by ?", + full_message = build_message(message, "pid ? killed by ?", + pid, AssertionMessage::Literal.new(sigdesc)) else 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(msg.gsub(/^/, '| '))) end