summaryrefslogtreecommitdiff
path: root/test/ruby/test_file.rb
diff options
context:
space:
mode:
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