summaryrefslogtreecommitdiff
path: root/test/ruby/test_signal.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_signal.rb')
-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