diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-03-14 22:39:25 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-03-14 22:39:25 +0000 |
commit | 6a1a02ae833a2f90e59a6400cb532e49888a80d7 (patch) | |
tree | 161eb1ed8a45f29e603f9166f9d8612858f6c7c7 /test/ruby/test_file.rb | |
parent | 0f418eaa2511d6a87178712250d619818778ba20 (diff) |
* file.c (realpath_internal): regulate separators in prefix.
[ruby-core:28653]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_file.rb')
-rw-r--r-- | test/ruby/test_file.rb | 4 |
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 |