1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_signal.rb (test_trap): string commands are allowed.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-07-16 19:12:41 +00:00
parent bb09f09ba6
commit aba40d1a38

View file

@ -146,8 +146,8 @@ class TestSignal < Test::Unit::TestCase
Signal.trap(:INT, "EXIT")
assert_raise(ArgumentError) { Signal.trap(:INT, "xxxxxx") }
assert_raise(ArgumentError) { Signal.trap(:INT, "xxxx") }
Signal.trap(:INT, "xxxxxx")
Signal.trap(:INT, "xxxx")
Signal.trap(SignalException.new(:INT).signo, "SIG_DFL")