From 8162d69dda2e584cdaa1bd50eebce1648454ebe4 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Tue, 17 Nov 2009 07:32:15 +0000 Subject: 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 --- test/ruby/test_signal.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') 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 -- cgit v1.2.3