diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-09 14:10:32 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-09 14:10:32 +0000 |
commit | 3ed259abbc4317322a6354ab1a2fd7a92a845551 (patch) | |
tree | 4008442489fff3797f600b15cc687e3c329a61bc /test/ruby/test_file.rb | |
parent | 8c8796333afcfc6a889cb7af614b4bf6b5d16057 (diff) | |
download | ruby-3ed259abbc4317322a6354ab1a2fd7a92a845551.tar.gz |
* win32/win32.c (isUNCRoot, winnt_stat): support long UNC.
[ruby-core:30623][Feature #3399]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_file.rb')
-rw-r--r-- | test/ruby/test_file.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb index cc266a4c4a..52dcffdcd0 100644 --- a/test/ruby/test_file.rb +++ b/test/ruby/test_file.rb @@ -204,4 +204,14 @@ class TestFile < Test::Unit::TestCase assert_equal(File.chmod(0666, file), 1, bug5671) end end + + if /(bcc|ms|cyg)win|mingw|emx/ =~ RUBY_PLATFORM + def test_long_unc + feature3399 = '[ruby-core:30623]' + path = File.expand_path(__FILE__) + assert_nothing_raised(Errno::ENOENT, feature3399) do + File.stat("//?/#{path}") + end + end + end end |