diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-04 03:19:57 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-04 03:19:57 +0000 |
commit | 859ae7764c69e6418945c96c596e55924d5dd8b8 (patch) | |
tree | b96bb28629f16c308f7a052e74e244cd51353c56 /test/ruby/test_dir.rb | |
parent | 4f431224965e4c986525309c7bbc298b9ae3d95f (diff) | |
download | ruby-859ae7764c69e6418945c96c596e55924d5dd8b8.tar.gz |
Revert "dir.c: glob cases on case-insensitive system"
This reverts commit r44796.
* dir.c (glob_helper): return the filename with actual cases on
the filesystem if it is case-insensitive. [ruby-core:42469]
[Feature #5994]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_dir.rb')
-rw-r--r-- | test/ruby/test_dir.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/test/ruby/test_dir.rb b/test/ruby/test_dir.rb index b0d848c83f..6054b8f7fe 100644 --- a/test/ruby/test_dir.rb +++ b/test/ruby/test_dir.rb @@ -228,27 +228,6 @@ class TestDir < Test::Unit::TestCase assert_empty(Dir.glob(File.join(@root, "<")), bug8597) end - def test_glob_cases - feature5994 = "[ruby-core:42469] [Feature #5994]" - feature5994 << "\nDir.glob should return the filename with actual cases on the filesystem" - Dir.chdir(File.join(@root, "a")) do - open("FileWithCases", "w") {} - return unless File.exist?("filewithcases") - assert_equal(%w"FileWithCases", Dir.glob("filewithcases"), feature5994) - end - Dir.chdir(File.join(@root, "c")) do - open("FileWithCases", "w") {} - mode = File.stat(".").mode - begin - File.chmod(mode & ~0444, ".") - return if mode == File.stat(".").mode - assert_equal(%w"filewithcases", Dir.glob("filewithcases"), feature5994) - ensure - File.chmod(mode, ".") - end - end - end - def test_home env_home = ENV["HOME"] env_logdir = ENV["LOGDIR"] |