diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_signal.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ruby/test_signal.rb b/test/ruby/test_signal.rb index 93a497a831..32068a407a 100644 --- a/test/ruby/test_signal.rb +++ b/test/ruby/test_signal.rb @@ -279,5 +279,12 @@ EOS Process.kill(:INT, $$) end end; + + if trap = Signal.list['TRAP'] + bug9820 = '[ruby-dev:48592] [Bug #9820]' + status = assert_in_out_err(['-e', 'Process.kill(:TRAP, $$)']) + assert_predicate(status, :signaled?, bug9820) + assert_equal(trap, status.termsig, bug9820) + end end if Process.respond_to?(:kill) end |