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:
parent
03c39e114b
commit
ae29036196
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue