summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_thread.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb
index 13d1a3ff65..30e886447e 100644
--- a/test/ruby/test_thread.rb
+++ b/test/ruby/test_thread.rb
@@ -874,6 +874,17 @@ class TestThreadGroup < Test::Unit::TestCase
t.join
}
+
+ assert_raise(ThreadError) {
+ t = Thread.new{ sleep 0.2; Process.kill(:INT, $$) }
+
+ Signal.trap :INT do
+ t.value
+ end
+
+ t.value
+ }
+
end
def test_thread_join_current