1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2012-04-09 14:14:39 +00:00
parent 3ed259abbc
commit 04e3e2de56

View file

@ -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