mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test_beginendblock.rb: add loop to wait signal.
[ruby-dev:32332] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f5ee0fd521
commit
db2b0037fd
2 changed files with 9 additions and 2 deletions
|
@ -73,8 +73,10 @@ EOW
|
|||
|
||||
def test_should_propagate_signaled
|
||||
ruby = EnvUtil.rubybin
|
||||
out = IO.popen([ruby, '-e', 'STDERR.reopen(STDOUT)',
|
||||
'-e', 'at_exit{Process.kill(:INT, $$)}']) {|f|
|
||||
out = IO.popen(
|
||||
[ruby,
|
||||
'-e', 'STDERR.reopen(STDOUT)',
|
||||
'-e', 'at_exit{Process.kill(:INT, $$); loop{}}']) {|f|
|
||||
f.read
|
||||
}
|
||||
assert_match /Interrupt$/, out
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue