From bc4ecaa6990a0fbf81e1547aa7216c5a6d0d2213 Mon Sep 17 00:00:00 2001 From: normal Date: Sun, 8 Jul 2018 01:46:31 +0000 Subject: test/ruby/test_signal.rb: skip ensure if test is skipped Thanks to Greg for the fix. [ruby-core:87860] [Bug #14867] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_signal.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/ruby/test_signal.rb b/test/ruby/test_signal.rb index f242a2dc4c..549424a344 100644 --- a/test/ruby/test_signal.rb +++ b/test/ruby/test_signal.rb @@ -367,6 +367,6 @@ class TestSignal < Test::Unit::TestCase end end ensure - trap(:CHLD, old) + trap(:CHLD, old) if Signal.list['CHLD'] end end -- cgit v1.2.3