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
This commit is contained in:
nobu 2014-05-10 01:00:37 +00:00
parent 03c39e114b
commit ae29036196

View File

@ -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")