diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-10 01:00:37 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-10 01:00:37 +0000 |
commit | ae2903619650b32ca2fbefab7c59ebb920a4067f (patch) | |
tree | 3f67bb100b7887793c0aa6b68eeba947c0a939bd | |
parent | 03c39e114b51f3036101565addc7c04e6b382382 (diff) | |
download | ruby-ae2903619650b32ca2fbefab7c59ebb920a4067f.tar.gz |
test_signal.rb: test iff SIGQUIT is supported
* test/ruby/test_signal.rb (test_trap_system_default): test only
if SIGQUIT is supported, which is platform dependent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/ruby/test_signal.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_signal.rb b/test/ruby/test_signal.rb index 68da0d5840..6493f6c7ef 100644 --- a/test/ruby/test_signal.rb +++ b/test/ruby/test_signal.rb @@ -180,7 +180,7 @@ class TestSignal < Test::Unit::TestCase trap(:QUIT, "SYSTEM_DEFAULT") assert_equal("SYSTEM_DEFAULT", trap(:QUIT, "DEFAULT")) End - end + end if Signal.list.key?('QUIT') def test_signal_requiring t = Tempfile.new(%w"require_ensure_test .rb") |