From afc75f2284875dfd2757a17e9c4fafda1edd704c Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 21 Jun 2013 06:15:34 +0000 Subject: test_filehandler.rb: reap zombie * test/webrick/test_filehandler.rb (test_short_filename): use backtick to reap zombie, instead of leaving opened stream after reading. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/webrick/test_filehandler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/webrick/test_filehandler.rb') diff --git a/test/webrick/test_filehandler.rb b/test/webrick/test_filehandler.rb index cc27b34763..68c2c28d5a 100644 --- a/test/webrick/test_filehandler.rb +++ b/test/webrick/test_filehandler.rb @@ -219,7 +219,7 @@ class WEBrick::TestFileHandler < Test::Unit::TestCase if windows? fname = nil Dir.chdir(config[:DocumentRoot]) do - fname = IO.popen("dir /x webrick_long_filename.cgi", "r").read.match(/\s(w.+?cgi)\s/i)[1].downcase + fname = `dir /x webrick_long_filename.cgi`.match(/\s(w.+?cgi)\s/i)[1].downcase end else fname = "webric~1.cgi" -- cgit v1.2.3