summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-09 13:38:27 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-09 13:38:27 +0000
commitd7a3261d28371d80ded8d308110ee46364fcc1f7 (patch)
tree66121e423e6265a39aa0291588c0ebbf8d3d2405
parent30a87f353550aa112cdcb598641de22587ae0c68 (diff)
* 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
-rw-r--r--ChangeLog6
-rw-r--r--test/ruby/test_thread.rb7
2 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c5bc9b4..d26cc67 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb
index 4089eb6..c2e592b 100644
--- a/test/ruby/test_thread.rb
+++ b/test/ruby/test_thread.rb
@@ -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