diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-09 15:13:11 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-09 15:13:11 +0000 |
commit | a738b98fc6d70f36724a19b49fcce6a508c7da06 (patch) | |
tree | 388c48b20b7c564c618259a5a8e2f9214a5ccbb1 /test | |
parent | ed37579c6aa8eaa1edf62ac84269055edfc0139b (diff) | |
download | ruby-a738b98fc6d70f36724a19b49fcce6a508c7da06.tar.gz |
test_beginendblock.rb, test_signal.rb: run with default handler
* test/ruby/test_beginendblock.rb (test_propagate_signaled): run
with default handler.
* test/ruby/test_signal.rb (test_hup_me): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_beginendblock.rb | 1 | ||||
-rw-r--r-- | test/ruby/test_signal.rb | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_beginendblock.rb b/test/ruby/test_beginendblock.rb index 30db5024cc..d9c1f56916 100644 --- a/test/ruby/test_beginendblock.rb +++ b/test/ruby/test_beginendblock.rb @@ -112,6 +112,7 @@ EOW ruby = EnvUtil.rubybin out = IO.popen( [ruby, + '-e', 'trap(:INT, "DEFAULT")', '-e', 'STDERR.reopen(STDOUT)', '-e', 'at_exit{Process.kill(:INT, $$); sleep 5 }']) {|f| timeout(10) { diff --git a/test/ruby/test_signal.rb b/test/ruby/test_signal.rb index 8dd4db7bb0..9bf4cc866a 100644 --- a/test/ruby/test_signal.rb +++ b/test/ruby/test_signal.rb @@ -256,9 +256,12 @@ EOS # that signal will be deliverd synchronously. # This ugly workaround was introduced to don't break # compatibility against silly example codes. + assert_separately(<<-RUBY) + trap(:HUP, "DEFAULT") assert_raise(SignalException) { Process.kill('HUP', Process.pid) } + RUBY bug8137 = '[ruby-dev:47182] [Bug #8137]' assert_nothing_raised(bug8137) { Timeout.timeout(1) { |