From f928c326ca3b6af1610ceb7e8b945aba30bb0ff1 Mon Sep 17 00:00:00 2001 From: ko1 Date: Wed, 16 Oct 2013 08:46:00 +0000 Subject: * 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 --- ChangeLog | 5 +++++ bootstraptest/runner.rb | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index cff8ffd3ec..c6b913f59b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Oct 16 17:45:13 2013 Koichi Sasada + + * bootstraptest/runner.rb: check nil before calling `signal?' + for a process status. + Wed Oct 16 17:37:17 2013 Koichi Sasada * error.c, internal.h (rb_bug_reporter_add): add a new C-API. diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb index 75e255428a..5fdfc42a63 100755 --- a/bootstraptest/runner.rb +++ b/bootstraptest/runner.rb @@ -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 -- cgit v1.2.3