зеркало из https://github.com/github/ruby.git
* 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:
Родитель
d2edd8b1b7
Коммит
f928c326ca
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче