mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/thread/test_queue.rb: catch up last commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c37c67cef8
commit
7ef01f83ac
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Tue Sep 1 18:37:15 2015 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* test/thread/test_queue.rb: catch up last commit.
|
||||
|
||||
Tue Sep 1 18:16:32 2015 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* thread_sync.c (queue_do_close): ignore multiple close to allow
|
||||
|
|
|
@ -509,11 +509,11 @@ class TestQueue < Test::Unit::TestCase
|
|||
[->{Queue.new}, ->{SizedQueue.new 3}].each do |qcreate|
|
||||
q = qcreate[]
|
||||
q.close
|
||||
assert_raise(ClosedQueueError){q.close}
|
||||
assert_nothing_raised(ClosedQueueError){q.close}
|
||||
|
||||
q = qcreate[]
|
||||
q.close(true)
|
||||
assert_raise(ClosedQueueError){q.close(false)}
|
||||
assert_nothing_raised(ClosedQueueError){q.close(false)}
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue