summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_thread.rb2
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)