aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_thread.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-05 12:25:15 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-05 12:25:15 +0000
commit7835e321ea05b3176f05f9840b7082b4378edc62 (patch)
tree97f638e73f9ab212f9743a6cc6e639d62d362dd0 /test/ruby/test_thread.rb
parent3ce802b79c66bc534a7221d60fc977761bd232fe (diff)
downloadruby-7835e321ea05b3176f05f9840b7082b4378edc62.tar.gz
* test/ruby/test_thread.rb (test_thread_join_in_trap):
Run the test in a different process. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_thread.rb')
-rw-r--r--test/ruby/test_thread.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb
index 260c654287..ab1b81a8fe 100644
--- a/test/ruby/test_thread.rb
+++ b/test/ruby/test_thread.rb
@@ -725,6 +725,7 @@ _eom
end
def test_thread_join_in_trap
+ assert_separately [], <<-'EOS'
assert_nothing_raised{
t = Thread.new{ sleep 0.2; Process.kill(:INT, $$) }
@@ -734,7 +735,9 @@ _eom
t.join
}
+ EOS
+ assert_separately [], <<-'EOS'
assert_equal(:normal_end,
begin
t = Thread.new{ sleep 0.2; Process.kill(:INT, $$); :normal_end }
@@ -745,6 +748,7 @@ _eom
t.value
end
)
+ EOS
end
def test_thread_join_current