summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-17 07:32:15 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-17 07:32:15 +0000
commit8162d69dda2e584cdaa1bd50eebce1648454ebe4 (patch)
tree70196d82abb8e70f3872dd54cafe3d16fa4dea74 /test
parenteaa8ca6b78be62f74ccb79f91631c07e82e5bb2a (diff)
merge revision(s) 24958,24979:
* eval.c (rb_thread_start_timer): start to catch SIGVTALRM together with timer thread. [ruby-core:25606] * eval.c (rb_thread_atfork): stop timer thread. * eval.c (rb_thread_start_0, rb_thread_start_1): should call star timer after added new thread to thread list. [ruby-core:25613] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@25819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_signal.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ruby/test_signal.rb b/test/ruby/test_signal.rb
index 43e16b8c79..84db7fa1f3 100644
--- a/test/ruby/test_signal.rb
+++ b/test/ruby/test_signal.rb
@@ -65,4 +65,11 @@ class TestSignal < Test::Unit::TestCase
w0.close
end
end
+
+ def test_child_vtalrm
+ return unless have_fork? # snip this test
+ pid = fork {100_000.times{ 1+1 }}
+ pid, status = Process.wait2(pid)
+ assert_equal(false, status.signaled?, '[ruby-core:25606]')
+ end
end