aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_file.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb
index 90f2ec1f53..ba9549fda5 100644
--- a/test/ruby/test_file.rb
+++ b/test/ruby/test_file.rb
@@ -164,6 +164,10 @@ class TestFile < Test::Unit::TestCase
tst = realdir.sub(/#{Regexp.escape(File::SEPARATOR)}/, '\0\0\0')
assert_equal(realdir, File.realpath(tst))
assert_equal(realdir, File.realpath(".", tst))
+ if File::ALT_SEPARATOR
+ bug2961 = '[ruby-core:28653]'
+ assert_equal(realdir, File.realpath(realdir.tr(File::SEPARATOR, File::ALT_SEPARATOR)), bug2961)
+ end
}
end