diff options
Diffstat (limited to 'bootstraptest')
-rwxr-xr-x | bootstraptest/runner.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |