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

ruby-changes:33820

From: nobu <ko1@a...>
Date: Sat, 10 May 2014 21:15:21 +0900 (JST)
Subject: [ruby-changes:33820] nobu:r45901 (trunk): envutil.rb: successfully terminated process

nobu	2014-05-10 21:15:06 +0900 (Sat, 10 May 2014)

  New Revision: 45901

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

  Log:
    envutil.rb: successfully terminated process
    
    * test/ruby/envutil.rb (FailDesc): allow successfully terminated
      process without a signal.

  Modified files:
    trunk/test/ruby/envutil.rb
Index: test/ruby/envutil.rb
===================================================================
--- test/ruby/envutil.rb	(revision 45900)
+++ test/ruby/envutil.rb	(revision 45901)
@@ -272,9 +272,10 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/ruby/envutil.rb#L272
         pid = status.pid
         now = Time.now
         faildesc = proc do
-          signo = status.termsig
-          signame = Signal.signame(signo)
-          sigdesc = "signal #{signo}"
+          if signo = status.termsig
+            signame = Signal.signame(signo)
+            sigdesc = "signal #{signo}"
+          end
           log = EnvUtil.diagnostic_reports(signame, EnvUtil.rubybin, pid, now)
           if signame
             sigdesc = "SIG#{signame} (#{sigdesc})"

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

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