diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-02-22 12:34:54 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-02-22 12:34:54 +0000 |
commit | 29860b0bbbaba0175d552846575c0784bb4e1fcb (patch) | |
tree | 2d5613cae8aeb3da1a8291d98931973910e44872 /test/ruby | |
parent | b551e8c8b36766651be4e782e09e3b02e7d14a10 (diff) | |
download | ruby-29860b0bbbaba0175d552846575c0784bb4e1fcb.tar.gz |
don't use infinite loop.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_beginendblock.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_beginendblock.rb b/test/ruby/test_beginendblock.rb index 0000985952..2ddcddd43b 100644 --- a/test/ruby/test_beginendblock.rb +++ b/test/ruby/test_beginendblock.rb @@ -97,8 +97,8 @@ EOW out = IO.popen( [ruby, '-e', 'STDERR.reopen(STDOUT)', - '-e', 'at_exit{Process.kill(:INT, $$); loop{}}']) {|f| - timeout(1) { + '-e', 'at_exit{Process.kill(:INT, $$); sleep 5 }']) {|f| + timeout(10) { f.read } } |