diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-21 06:15:34 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-21 06:15:34 +0000 |
commit | afc75f2284875dfd2757a17e9c4fafda1edd704c (patch) | |
tree | eccc22aaf95593195984dd8c3419e16075d24472 /test | |
parent | ac9413893ac7792b5614c9efe795f8448767103f (diff) | |
download | ruby-afc75f2284875dfd2757a17e9c4fafda1edd704c.tar.gz |
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')
-rw-r--r-- | test/webrick/test_filehandler.rb | 2 |
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" |