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

ruby-changes:43452

From: nobu <ko1@a...>
Date: Tue, 28 Jun 2016 22:29:42 +0900 (JST)
Subject: [ruby-changes:43452] nobu:r55526 (trunk): bootstraptest/runner.rb may run on older ruby

nobu	2016-06-28 22:29:38 +0900 (Tue, 28 Jun 2016)

  New Revision: 55526

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

  Log:
    bootstraptest/runner.rb may run on older ruby
    
    * bootstraptest/runner.rb: do not use safe navigation operator.
      this runner may run on older ruby.  partially revert r53110
      (GH-1142 patched by @mlarraz).

  Modified files:
    trunk/ChangeLog
    trunk/bootstraptest/runner.rb
Index: bootstraptest/runner.rb
===================================================================
--- bootstraptest/runner.rb	(revision 55525)
+++ bootstraptest/runner.rb	(revision 55526)
@@ -347,7 +347,7 @@ def assert_normal_exit(testsrc, *rest) https://github.com/ruby/ruby/blob/trunk/bootstraptest/runner.rb#L347
       $stderr.reopen(old_stderr)
       old_stderr.close
     end
-    if status&.signaled?
+    if status && status.signaled?
       signo = status.termsig
       signame = Signal.list.invert[signo]
       unless ignore_signals and ignore_signals.include?(signame)
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 55525)
+++ ChangeLog	(revision 55526)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Jun 28 22:29:36 2016  Nobuyoshi Nakada  <nobu@r...>
+
+	* bootstraptest/runner.rb: do not use safe navigation operator.
+	  this runner may run on older ruby.  partially revert r53110
+	  (GH-1142 patched by @mlarraz).
+
 Tue Jun 28 22:09:09 2017  Akio Tajima <artonx@y...>
 
 	* lib/fileutils.rb: rescue Errno:EACCES for chown.

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

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