summaryrefslogtreecommitdiff
path: root/test/ruby/test_file_exhaustive.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-22 08:19:34 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-22 08:19:34 +0000
commit9c5c31c8b70106989a218e41935c0ab75f631b34 (patch)
tree1ad5ee87f0205c9adbd9cfda214373be3984ac09 /test/ruby/test_file_exhaustive.rb
parent0749e7be45712357b3ed03fec3d670c7dc542eca (diff)
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/trunk@58447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_file_exhaustive.rb')
-rw-r--r--test/ruby/test_file_exhaustive.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/ruby/test_file_exhaustive.rb b/test/ruby/test_file_exhaustive.rb
index 229104050b..a3c2a4018a 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