1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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