summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-08 01:46:31 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-08 01:46:31 +0000
commitbc4ecaa6990a0fbf81e1547aa7216c5a6d0d2213 (patch)
tree359eb8f913b2f69b7dae47a20d73a3945f587bdf /test
parentb93dc848835f93efc100cde2d3056512e7ddf557 (diff)
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
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_signal.rb2
1 files changed, 1 insertions, 1 deletions
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