From b569971422f24b61dff1c9130d118623916256fe Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 19 Jun 2016 01:48:27 +0000 Subject: 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 --- test/ruby/test_file_exhaustive.rb | 3 +-- 1 file changed, 1 insertion(+), 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: -- cgit v1.2.3