[前][次][番号順一覧][スレッド一覧]

ruby-changes:38824

From: nobu <ko1@a...>
Date: Mon, 15 Jun 2015 10:52:01 +0900 (JST)
Subject: [ruby-changes:38824] nobu:r50905 (trunk): envutil.rb: no signal description iff possible

nobu	2015-06-15 10:51:49 +0900 (Mon, 15 Jun 2015)

  New Revision: 50905

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50905

  Log:
    envutil.rb: no signal description iff possible
    
    * test/lib/envutil.rb (FailDesc): show signal description only if
      it is available, or nothing if not killed by a signal.

  Modified files:
    trunk/test/lib/envutil.rb
Index: test/lib/envutil.rb
===================================================================
--- test/lib/envutil.rb	(revision 50904)
+++ test/lib/envutil.rb	(revision 50905)
@@ -329,7 +329,8 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/lib/envutil.rb#L329
           if message and !message.empty?
             full_message << message << "\n"
           end
-          full_message << "pid #{pid} killed by #{sigdesc}"
+          full_message << "pid #{pid}"
+          full_message << " killed by #{sigdesc}" if sigdesc
           if out and !out.empty?
             full_message << "\n#{out.gsub(/^/, '| ')}"
             full_message << "\n" if /\n\z/ !~ full_message

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]