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
|
@ -1,3 +1,8 @@
|
||||||
|
Tue Nov 27 11:23:20 2007 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
|
* test_beginendblock.rb: add loop to wait signal.
|
||||||
|
[ruby-dev:32332]
|
||||||
|
|
||||||
Tue Nov 27 11:14:57 2007 Tanaka Akira <akr@fsij.org>
|
Tue Nov 27 11:14:57 2007 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* include/ruby/encoding.h, encoding.c, re.c, string.c, parse.y:
|
* include/ruby/encoding.h, encoding.c, re.c, string.c, parse.y:
|
||||||
|
|
|
@ -73,8 +73,10 @@ EOW
|
||||||
|
|
||||||
def test_should_propagate_signaled
|
def test_should_propagate_signaled
|
||||||
ruby = EnvUtil.rubybin
|
ruby = EnvUtil.rubybin
|
||||||
out = IO.popen([ruby, '-e', 'STDERR.reopen(STDOUT)',
|
out = IO.popen(
|
||||||
'-e', 'at_exit{Process.kill(:INT, $$)}']) {|f|
|
[ruby,
|
||||||
|
'-e', 'STDERR.reopen(STDOUT)',
|
||||||
|
'-e', 'at_exit{Process.kill(:INT, $$); loop{}}']) {|f|
|
||||||
f.read
|
f.read
|
||||||
}
|
}
|
||||||
assert_match /Interrupt$/, out
|
assert_match /Interrupt$/, out
|
||||||
|
|
Loading…
Reference in a new issue