From d4a1804eb1e635d04a91a55ac8a4bbf71711126e Mon Sep 17 00:00:00 2001 From: odaira Date: Tue, 10 Mar 2015 16:01:57 +0000 Subject: [PATCH] * test/rubygems/test_gem_security_trust_dir.rb: The return value of File::Stat#mode is OS dependent. In AIX, 0200000 is set. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ test/rubygems/test_gem_security_trust_dir.rb | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index acf9099dec..1abfc6f917 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Mar 11 00:57:00 2015 Rei Odaira + + * test/rubygems/test_gem_security_trust_dir.rb: The return value of + File::Stat#mode is OS dependent. In AIX, 0200000 is set. + Tue Mar 10 20:03:41 2015 Tanaka Akira * lib/webrick/server.rb: Invoke setup_shutdown_pipe in start method diff --git a/test/rubygems/test_gem_security_trust_dir.rb b/test/rubygems/test_gem_security_trust_dir.rb index 7b0d450bd6..475db2e790 100644 --- a/test/rubygems/test_gem_security_trust_dir.rb +++ b/test/rubygems/test_gem_security_trust_dir.rb @@ -70,6 +70,7 @@ class TestGemSecurityTrustDir < Gem::TestCase assert_path_exists @dest_dir mask = 040700 & (~File.umask) + mask |= 0200000 if /aix/ =~ RUBY_PLATFORM assert_equal mask, File.stat(@dest_dir).mode unless win_platform? end @@ -90,6 +91,7 @@ class TestGemSecurityTrustDir < Gem::TestCase @trust_dir.verify mask = 040700 & (~File.umask) + mask |= 0200000 if /aix/ =~ RUBY_PLATFORM assert_equal mask, File.stat(@dest_dir).mode unless win_platform? end