diff options
author | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-03 22:04:49 +0000 |
---|---|---|
committer | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-03 22:04:49 +0000 |
commit | 7f8a1be2828d15ef06ab0dec396fe79506bae048 (patch) | |
tree | e781ead1c28ff5831acc5b30e23194b56377dba8 /test/ruby | |
parent | 6793642e24251b16aa464a85d9930eb909845ef4 (diff) |
merge revision(s) 58431,58447: [Backport #13489]
test_framework.rb: for case-sensitive filesystem
* test/mkmf/test_framework.rb (test_single_framework): fix header
file name for case-sensitive filesystem. it may not be same as
the framework name, but should be the actual file name.
[ruby-dev:50093] [Bug #13489]
* test/mkmf/test_framework.rb (test_multi_frameworks): ditto.
test_file_exhaustive.rb: check case-sensitive fs
* test/ruby/test_file_exhaustive.rb (test_expand_path): dump
expanded file name, not only appended char, for case-sensitive
filesystem. [ruby-dev:50093] [Bug #13489]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@62646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_file_exhaustive.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/ruby/test_file_exhaustive.rb b/test/ruby/test_file_exhaustive.rb index 49e695fc75..f3845f7f51 100644 --- a/test/ruby/test_file_exhaustive.rb +++ b/test/ruby/test_file_exhaustive.rb @@ -744,12 +744,14 @@ class TestFileExhaustive < Test::Unit::TestCase when /darwin/ ["\u{feff}", *"\u{2000}"..."\u{2100}"].each do |c| file = regular_file + c + full_path = File.expand_path(file) + mesg = proc {File.basename(full_path).dump} begin open(file) {} rescue - assert_equal(file, File.expand_path(file), c.dump) + assert_equal(file, full_path, mesg) else - assert_equal(regular_file, File.expand_path(file), c.dump) + assert_equal(regular_file, full_path, mesg) end end end |