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:
parent
bb09f09ba6
commit
aba40d1a38
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue