1
0
Fork 0
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:
ko1 2015-09-01 09:37:33 +00:00
parent c37c67cef8
commit 7ef01f83ac
2 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -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