diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/webrick/test_server.rb | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/test/webrick/test_server.rb b/test/webrick/test_server.rb index 4c064fdb4b..eab7a5ca5f 100644 --- a/test/webrick/test_server.rb +++ b/test/webrick/test_server.rb @@ -46,19 +46,13 @@ class TestWEBrickServer < Test::Unit::TestCase def test_daemon begin - r, w = IO.pipe - Process.fork{ - r.close + pid = Process.fork{ WEBrick::Daemon.start - w.puts(Process.pid) sleep } - assert(Process.kill(:KILL, r.gets.to_i)) + assert(Process.kill(:KILL, pid)) rescue NotImplementedError # snip this test - ensure - r.close - w.close end end end |