* test/ruby/test_require.rb (TestRequire#test_require_with_unc):

use ``127.0.0.1'' instead of ``localhost'' as host name, because
  XP or earlier cannot resolv it as NBT hostname.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2011-02-01 06:15:14 +00:00
parent 6e2a194fa7
commit c4bf3eba2b
2 changed files with 7 additions and 1 deletions

View file

@ -92,7 +92,7 @@ class TestRequire < Test::Unit::TestCase
end
def test_require_with_unc
assert(system(File.expand_path(EnvUtil.rubybin).sub(/\A(\w):/, '//localhost/\1$/'), "-rabbrev", "-e0"))
assert(system(File.expand_path(EnvUtil.rubybin).sub(/\A(\w):/, '//127.0.0.1/\1$/'), "-rabbrev", "-e0"))
end if /mswin|mingw/ =~ RUBY_PLATFORM
def test_define_class