aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-01 06:15:14 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-01 06:15:14 +0000
commitc4bf3eba2b7b975fd5fdf45b95026cac46cbdc31 (patch)
treeff8e89fdf51346cab63f96f83f24919cce86b9d0 /test
parent6e2a194fa71f136f5911e8b3dc60ef0aae962ad8 (diff)
downloadruby-c4bf3eba2b7b975fd5fdf45b95026cac46cbdc31.tar.gz
* 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
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_require.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_require.rb b/test/ruby/test_require.rb
index c764939b1e..14c26df39f 100644
--- a/test/ruby/test_require.rb
+++ b/test/ruby/test_require.rb
@@ -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