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

ruby-changes:31226

From: ko1 <ko1@a...>
Date: Wed, 16 Oct 2013 17:46:04 +0900 (JST)
Subject: [ruby-changes:31226] ko1:r43305 (trunk): * bootstraptest/runner.rb: check nil before calling `signal?'

ko1	2013-10-16 17:46:00 +0900 (Wed, 16 Oct 2013)

  New Revision: 43305

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

  Log:
    * bootstraptest/runner.rb: check nil before calling `signal?'
      for a process status.

  Modified files:
    trunk/ChangeLog
    trunk/bootstraptest/runner.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 43304)
+++ ChangeLog	(revision 43305)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Oct 16 17:45:13 2013  Koichi Sasada  <ko1@a...>
+
+	* bootstraptest/runner.rb: check nil before calling `signal?'
+	  for a process status.
+
 Wed Oct 16 17:37:17 2013  Koichi Sasada  <ko1@a...>
 
 	* error.c, internal.h (rb_bug_reporter_add): add a new C-API.
Index: bootstraptest/runner.rb
===================================================================
--- bootstraptest/runner.rb	(revision 43304)
+++ bootstraptest/runner.rb	(revision 43305)
@@ -321,7 +321,7 @@ def assert_normal_exit(testsrc, *rest) https://github.com/ruby/ruby/blob/trunk/bootstraptest/runner.rb#L321
       $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)
@@ -407,7 +407,7 @@ def get_result_string(src, opt = '') https://github.com/ruby/ruby/blob/trunk/bootstraptest/runner.rb#L407
     begin
       `#{@ruby} -W0 #{opt} #{filename}`
     ensure
-      raise Interrupt if $?.signaled? && $?.termsig == Signal.list["INT"]
+      raise Interrupt if $? and $?.signaled? && $?.termsig == Signal.list["INT"]
       raise CoreDumpError, "core dumped" if $? and $?.coredump?
     end
   else

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

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