1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* bootstraptest/runner.rb: check nil before calling `signal?'

for a process status.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2013-10-16 08:46:00 +00:00
parent d2edd8b1b7
commit f928c326ca
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Wed Oct 16 17:45:13 2013 Koichi Sasada <ko1@atdot.net>
* bootstraptest/runner.rb: check nil before calling `signal?'
for a process status.
Wed Oct 16 17:37:17 2013 Koichi Sasada <ko1@atdot.net>
* error.c, internal.h (rb_bug_reporter_add): add a new C-API.

View file

@ -321,7 +321,7 @@ def assert_normal_exit(testsrc, *rest)
$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 = '')
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