diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-27 13:37:37 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-27 13:37:37 +0000 |
commit | faaf8ea8af1fc052a3234e7df7bee9cf156fdf86 (patch) | |
tree | 887101bbf099c5426db9fbd5640023d50dc36798 /test/ruby/test_io.rb | |
parent | 83e216b6701e2582f59aeac5dd4bbc06c8b9da82 (diff) | |
download | ruby-faaf8ea8af1fc052a3234e7df7bee9cf156fdf86.tar.gz |
* test/ruby/test_io.rb (TestIO#test_ungetc2): get rid of busy loop.
* test/ruby/test_signal.rb (TestSignal#test_signal2): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_io.rb')
-rw-r--r-- | test/ruby/test_io.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index 1ed9072c89..f91922796d 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -827,7 +827,7 @@ class TestIO < Test::Unit::TestCase def test_ungetc2 f = false pipe(proc do |w| - 0 until f + Thread.pass until f w.write("1" * 10000) w.close end, proc do |r| |