diff options
| author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-27 02:28:28 +0000 |
|---|---|---|
| committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-27 02:28:28 +0000 |
| commit | 609adeda34c3284c8715b2aecb857b606024d704 (patch) | |
| tree | 611f22990800af2108e294fba832500148f14751 /test/ruby | |
| parent | 2093735537dc0c815db5cdb3d68ef4ff3f22b1c9 (diff) | |
| download | ruby-609adeda34c3284c8715b2aecb857b606024d704.tar.gz ruby-609adeda34c3284c8715b2aecb857b606024d704.tar.xz ruby-609adeda34c3284c8715b2aecb857b606024d704.zip | |
* test_beginendblock.rb: add loop to wait signal.
[ruby-dev:32332]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_beginendblock.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/ruby/test_beginendblock.rb b/test/ruby/test_beginendblock.rb index e5f21286a..3e51adff3 100644 --- a/test/ruby/test_beginendblock.rb +++ b/test/ruby/test_beginendblock.rb @@ -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 |
