mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* bootstraptest/runner.rb: use safe navigation operator.
[fix GH-1142] Patch by @mlarraz * test/openssl/test_pair.rb: ditto. * test/ruby/test_econv.rb: ditto. * test/ruby/test_settracefunc.rb: ditto. * test/thread/test_queue.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c81b224edc
commit
6cf568f4b5
6 changed files with 15 additions and 6 deletions
|
@ -1,3 +1,12 @@
|
|||
Mon Dec 14 17:03:05 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
||||
|
||||
* bootstraptest/runner.rb: use safe navigation operator.
|
||||
[fix GH-1142] Patch by @mlarraz
|
||||
* test/openssl/test_pair.rb: ditto.
|
||||
* test/ruby/test_econv.rb: ditto.
|
||||
* test/ruby/test_settracefunc.rb: ditto.
|
||||
* test/thread/test_queue.rb: ditto.
|
||||
|
||||
Mon Dec 14 14:33:35 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
||||
|
||||
* lib/xmlrpc.rb: added documentation for parser details.
|
||||
|
|
|
@ -347,7 +347,7 @@ def assert_normal_exit(testsrc, *rest)
|
|||
$stderr.reopen(old_stderr)
|
||||
old_stderr.close
|
||||
end
|
||||
if status && status.signaled?
|
||||
if status&.signaled?
|
||||
signo = status.termsig
|
||||
signame = Signal.list.invert[signo]
|
||||
unless ignore_signals and ignore_signals.include?(signame)
|
||||
|
|
|
@ -49,7 +49,7 @@ module OpenSSL::SSLPairM
|
|||
return c, s
|
||||
end
|
||||
ensure
|
||||
if th && th.alive?
|
||||
if th&.alive?
|
||||
th.kill
|
||||
th.join
|
||||
end
|
||||
|
|
|
@ -18,8 +18,8 @@ class TestEncodingConverter < Test::Unit::TestCase
|
|||
|
||||
def assert_errinfo(e_res, e_enc1, e_enc2, e_error_bytes, e_readagain_bytes, ec)
|
||||
assert_equal([e_res, e_enc1, e_enc2,
|
||||
e_error_bytes && e_error_bytes.b,
|
||||
e_readagain_bytes && e_readagain_bytes.b],
|
||||
e_error_bytes&.b,
|
||||
e_readagain_bytes&.b],
|
||||
ec.primitive_errinfo)
|
||||
end
|
||||
|
||||
|
|
|
@ -464,7 +464,7 @@ class TestSetTraceFunc < Test::Unit::TestCase
|
|||
EOF
|
||||
self.class.class_eval{remove_const(:XYZZY)}
|
||||
ensure
|
||||
trace.disable if trace && trace.enabled?
|
||||
trace.disable if trace&.enabled?
|
||||
end
|
||||
|
||||
answer_events = [
|
||||
|
|
|
@ -427,7 +427,7 @@ class TestQueue < Test::Unit::TestCase
|
|||
|
||||
# wait for all threads to be finished, because of exceptions
|
||||
# NOTE: thr.status will be nil (raised) or false (terminated)
|
||||
sleep 0.01 until prod_threads && prod_threads.all?{|thr| !thr.status}
|
||||
sleep 0.01 until prod_threads&.all?{|thr| !thr.status}
|
||||
|
||||
# check that all threads failed to call push
|
||||
prod_threads.each do |thr|
|
||||
|
|
Loading…
Add table
Reference in a new issue