ruby-changes:46333
From: nobu <ko1@a...>
Date: Sat, 22 Apr 2017 17:19:39 +0900 (JST)
Subject: [ruby-changes:46333] nobu:r58447 (trunk): test_file_exhaustive.rb: check case-sensitive fs
nobu 2017-04-22 17:19:34 +0900 (Sat, 22 Apr 2017) New Revision: 58447 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58447 Log: 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] Modified files: trunk/test/ruby/test_file_exhaustive.rb Index: test/ruby/test_file_exhaustive.rb =================================================================== --- test/ruby/test_file_exhaustive.rb (revision 58446) +++ test/ruby/test_file_exhaustive.rb (revision 58447) @@ -744,12 +744,14 @@ class TestFileExhaustive < Test::Unit::T https://github.com/ruby/ruby/blob/trunk/test/ruby/test_file_exhaustive.rb#L744 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/