From 0866b8e83af0cef810599d10654edca7a8779875 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 4 Jun 2017 06:24:04 +0000 Subject: test_require.rb: fix expected path * test/ruby/test_require.rb (test_require_with_unc): remove extra slash. the result of File.expand_path has a slash just follows the drive letter. https://github.com/ruby/ruby/commit/4ef849bd9014746821402e21053a53ea61b3690d#commitcomment-22391133 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_require.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ruby/test_require.rb') diff --git a/test/ruby/test_require.rb b/test/ruby/test_require.rb index 666f2fcd82..1bed6c4f64 100644 --- a/test/ruby/test_require.rb +++ b/test/ruby/test_require.rb @@ -226,7 +226,7 @@ class TestRequire < Test::Unit::TestCase t.puts "puts __FILE__" t.close - path = File.expand_path(t.path).sub(/\A(\w):/, '//127.0.0.1/\1$/') + path = File.expand_path(t.path).sub(/\A(\w):/, '//127.0.0.1/\1$') skip "local drive #$1: is not shared" unless File.exist?(path) args = ['--disable-gems', "-I#{File.dirname(path)}"] assert_in_out_err(args, "#{<<~"END;"}", [path], []) -- cgit v1.2.3