summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_thread.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb
index 518ad40333..95f2c89db4 100644
--- a/test/ruby/test_thread.rb
+++ b/test/ruby/test_thread.rb
@@ -876,6 +876,9 @@ class TestThreadGroup < Test::Unit::TestCase
}
end
-
-
+ def test_thread_join_current
+ assert_raises(ThreadError) do
+ Thread.current.join
+ end
+ end
end