From 0fd2c7e67b7f3da8e48372da7e03ee4f437bb8e8 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 21 May 2013 07:43:40 +0000 Subject: test_dir_m17n.rb: sort Dir.entries * test/ruby/test_dir_m17n.rb (test_entries_compose): the order on the filesystem does not matter, so sort Dir.entries result to compare. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_dir_m17n.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/ruby/test_dir_m17n.rb') diff --git a/test/ruby/test_dir_m17n.rb b/test/ruby/test_dir_m17n.rb index 9e72e19695..0816873647 100644 --- a/test/ruby/test_dir_m17n.rb +++ b/test/ruby/test_dir_m17n.rb @@ -326,6 +326,7 @@ class TestDir_M17N < Test::Unit::TestCase orig.map {|o| o.force_encoding(enc) } end ents = Dir.entries(".", opts).reject {|n| /\A\./ =~ n} + ents.sort! pp.assert_equal(orig, ents, bug7267) } end -- cgit v1.2.3