diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-12-14 05:42:34 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-12-14 05:42:34 +0000 |
commit | 8fbf055e330fa7d62184ca5c5155064d7e8ecba4 (patch) | |
tree | 47a8c4acd062f0d3bf847770069094c953a9db1f /test/ruby/test_thread.rb | |
parent | 50c1985555b00bf8e19646a5aad7e881ac84401b (diff) | |
download | ruby-8fbf055e330fa7d62184ca5c5155064d7e8ecba4.tar.gz |
Use pipe instead of $stdin.read.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_thread.rb')
-rw-r--r-- | test/ruby/test_thread.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb index a11cd196f6..64d9577c08 100644 --- a/test/ruby/test_thread.rb +++ b/test/ruby/test_thread.rb @@ -690,7 +690,7 @@ class TestThreadGroup < Test::Unit::TestCase def test_thread_timer_and_interrupt bug5757 = '[ruby-dev:44985]' t0 = Time.now.to_f - pid = spawn(EnvUtil.rubybin, '-e', '$stdin.read') + pid = spawn(EnvUtil.rubybin, '-e', 'r,=IO.pipe;r.read') sleep 1; Process.kill(:SIGQUIT, pid) Process.wait(pid) |