summaryrefslogtreecommitdiff
path: root/test/webrick
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-21 06:15:34 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-21 06:15:34 +0000
commitafc75f2284875dfd2757a17e9c4fafda1edd704c (patch)
treeeccc22aaf95593195984dd8c3419e16075d24472 /test/webrick
parentac9413893ac7792b5614c9efe795f8448767103f (diff)
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
Diffstat (limited to 'test/webrick')
-rw-r--r--test/webrick/test_filehandler.rb2
1 files changed, 1 insertions, 1 deletions
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"