* test/ruby/test_thread.rb (TestThread#test_kill_wrong_argument):

test for [ruby-core:35086].
  partially forward porting r31402 from ruby_1_9_2 branch.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nagachika 2011-06-09 13:38:27 +00:00
parent 30a87f3535
commit d7a3261d28
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,9 @@
Thu Jun 9 22:31:47 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* test/ruby/test_thread.rb (TestThread#test_kill_wrong_argument):
test for [ruby-core:35086].
partially forward porting r31402 from ruby_1_9_2 branch.
Thu Jun 9 18:36:00 2011 Kenta Murata <mrkn@mrkn.jp>
* string.c: Fix the ambiguous description of the behavior of

View File

@ -300,6 +300,13 @@ class TestThread < Test::Unit::TestCase
INPUT
end
def test_kill_wrong_argument
bug4367 = '[ruby-core:35086]'
assert_raise(TypeError, bug4367) {
Thread.kill(nil)
}
end
def test_exit
s = 0
Thread.new do