summaryrefslogtreecommitdiff
path: root/test/ruby/test_file.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-09 14:14:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-09 14:14:39 +0000
commit04e3e2de568956030c1868c9846506989d8a2392 (patch)
tree2c9b40e124c3bc762efb88a407a44e3f9c25d11a /test/ruby/test_file.rb
parent3ed259abbc4317322a6354ab1a2fd7a92a845551 (diff)
* test/ruby/test_file.rb (TestFile#test_long_unc): fix for the case cwd is UNC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_file.rb')
-rw-r--r--test/ruby/test_file.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb
index 52dcffdcd0..bf2562317b 100644
--- a/test/ruby/test_file.rb
+++ b/test/ruby/test_file.rb
@@ -209,6 +209,7 @@ class TestFile < Test::Unit::TestCase
def test_long_unc
feature3399 = '[ruby-core:30623]'
path = File.expand_path(__FILE__)
+ path.sub!(%r'\A//', 'UNC/')
assert_nothing_raised(Errno::ENOENT, feature3399) do
File.stat("//?/#{path}")
end