* include/ruby/defines.h (CASEFOLD_FILESYSTEM): Revert r30508. See #4255.

Now __APPLE__ is not CASEFOLD_FILESYSTEM again.

* load.c (loaded_feature_path, rb_feature_p, load_lock): Revert r30508. 
  See #4255. Make $LOADED_FEATURES scanning case-sensitive again.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nahi 2011-05-22 12:52:18 +00:00
parent 75431b924c
commit 27ddbc5972
3 changed files with 16 additions and 33 deletions

View file

@ -339,20 +339,4 @@ class TestRequire < Test::Unit::TestCase
[], /\$LOADED_FEATURES is frozen; cannot append feature \(RuntimeError\)$/,
bug3756)
end
def test_case_insensitive
load_path = $:.dup
loaded = $".dup
path = File.expand_path(__FILE__)
$:.unshift(File.dirname(path))
$".push(path) unless $".include?(path)
bug4255 = '[ruby-core:34297]'
assert_equal(false, $bug4255 ||= false, bug4255)
$bug4255 = true
f = File.basename(__FILE__, ".*").upcase
assert_equal(false, require(f))
ensure
$:.replace(load_path)
$".replace(loaded)
end if File.identical?(__FILE__, __FILE__.upcase)
end