* 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

@ -1,3 +1,9 @@
Tue Feb 1 15:12:26 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* 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.
Tue Feb 1 13:20:39 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> Tue Feb 1 13:20:39 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/benchmark/test_benchmark.rb (#capture_bench_output): * test/benchmark/test_benchmark.rb (#capture_bench_output):

View file

@ -92,7 +92,7 @@ class TestRequire < Test::Unit::TestCase
end end
def test_require_with_unc 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 end if /mswin|mingw/ =~ RUBY_PLATFORM
def test_define_class def test_define_class