diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-19 01:48:27 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-19 01:48:27 +0000 |
commit | 19c5d5627d8c57b2699c3eaebd2b0a8a98689753 (patch) | |
tree | 44c72451a5d081c0daafbaca716af8996e750960 /test/ruby | |
parent | 34ec916cdd473c5fe6130d6ac4d2101913390549 (diff) | |
download | ruby-19c5d5627d8c57b2699c3eaebd2b0a8a98689753.tar.gz |
Normalization test iff UTF-8 file system
* test/ruby/test_file_exhaustive.rb (test_expand_path_compose):
normalization is meaningless unless file system encoding is UTF.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_file_exhaustive.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/ruby/test_file_exhaustive.rb b/test/ruby/test_file_exhaustive.rb index 9bfeece8c1..f316d3fcf3 100644 --- a/test/ruby/test_file_exhaustive.rb +++ b/test/ruby/test_file_exhaustive.rb @@ -1094,8 +1094,7 @@ class TestFileExhaustive < Test::Unit::TestCase assert_equal('z:/bar/foo', File.expand_path('z:foo', '/bar'), bug10858) end if DRIVE - case RUBY_PLATFORM - when /darwin/ + if /darwin/ =~ RUBY_PLATFORM and Encoding.find("filesystem") == Encoding::UTF_8 def test_expand_path_compose pp = Object.new.extend(Test::Unit::Assertions) def pp.mu_pp(str) #:nodoc: |