зеркало из https://github.com/github/ruby.git
* 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:
Родитель
bb09f09ba6
Коммит
aba40d1a38
|
@ -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")
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче