diff options
Diffstat (limited to 'test/ruby/test_signal.rb')
-rw-r--r-- | test/ruby/test_signal.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ruby/test_signal.rb b/test/ruby/test_signal.rb index 14be2d76aa..68da0d5840 100644 --- a/test/ruby/test_signal.rb +++ b/test/ruby/test_signal.rb @@ -175,6 +175,13 @@ class TestSignal < Test::Unit::TestCase end; end if Process.respond_to?(:kill) + def test_trap_system_default + assert_separately([], <<-End) + trap(:QUIT, "SYSTEM_DEFAULT") + assert_equal("SYSTEM_DEFAULT", trap(:QUIT, "DEFAULT")) + End + end + def test_signal_requiring t = Tempfile.new(%w"require_ensure_test .rb") t.puts "sleep" |