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

ruby-changes:37747

From: usa <ko1@a...>
Date: Tue, 3 Mar 2015 22:26:54 +0900 (JST)
Subject: [ruby-changes:37747] usa:r49828 (trunk): * test/lib/envutil.rb (EnvUtil.invoke_ruby): need to rescue because

usa	2015-03-03 22:26:40 +0900 (Tue, 03 Mar 2015)

  New Revision: 49828

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

  Log:
    * test/lib/envutil.rb (EnvUtil.invoke_ruby): need to rescue because
      Signal.signame may raise exception.

  Modified files:
    trunk/ChangeLog
    trunk/test/lib/envutil.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 49827)
+++ ChangeLog	(revision 49828)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Mar  3 22:25:24 2015  NAKAMURA Usaku  <usa@r...>
+
+	* test/lib/envutil.rb (EnvUtil.invoke_ruby): need to rescue because
+	  Signal.signame may raise exception.
+
 Tue Mar  3 16:57:39 2015  NAKAMURA Usaku  <usa@r...>
 
 	* tool/redmine-backporter.rb: use 'b' instead of 's' for showing
Index: test/lib/envutil.rb
===================================================================
--- test/lib/envutil.rb	(revision 49827)
+++ test/lib/envutil.rb	(revision 49828)
@@ -70,7 +70,7 @@ module EnvUtil https://github.com/ruby/ruby/blob/trunk/test/lib/envutil.rb#L70
       unless (!th_stdout || th_stdout.join(timeout)) && (!th_stderr || th_stderr.join(timeout))
         signals = Array(signal).select do |sig|
           DEFAULT_SIGNALS[sig.to_s] or
-            DEFAULT_SIGNALS[Signal.signame(sig)]
+            DEFAULT_SIGNALS[Signal.signame(sig)] rescue false
         end
         signals |= [:KILL]
         case pgroup = opt[:pgroup]

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

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