1
0
Fork 0
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:
ko1 2007-11-27 02:28:28 +00:00
parent f5ee0fd521
commit db2b0037fd
2 changed files with 9 additions and 2 deletions

View file

@ -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>
* include/ruby/encoding.h, encoding.c, re.c, string.c, parse.y:

View file

@ -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