summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_signal.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-16 19:12:41 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-16 19:12:41 +0000
commit4f89ae08c8441ee707c8d225be9b2f90c60de5a4 (patch)
tree059479b22181a42cb13011be8cf92b23f3bb0ed5 /test/ruby/test_signal.rb
parent001d8a8f64791f2725ed03202dbf9d3c486fbc9a (diff)
downloadruby-4f89ae08c8441ee707c8d225be9b2f90c60de5a4.tar.gz
ruby-4f89ae08c8441ee707c8d225be9b2f90c60de5a4.tar.xz
ruby-4f89ae08c8441ee707c8d225be9b2f90c60de5a4.zip
* test/ruby/test_signal.rb (test_trap): string commands are allowed.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_signal.rb')
-rw-r--r--test/ruby/test_signal.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_signal.rb b/test/ruby/test_signal.rb
index e66496144..0bc2078c1 100644
--- a/test/ruby/test_signal.rb
+++ b/test/ruby/test_signal.rb
@@ -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")