ruby-changes:37838
From: odaira <ko1@a...>
Date: Wed, 11 Mar 2015 01:02:16 +0900 (JST)
Subject: [ruby-changes:37838] odaira:r49919 (trunk): * test/rubygems/test_gem_security_trust_dir.rb: The return value of
odaira 2015-03-11 01:01:57 +0900 (Wed, 11 Mar 2015) New Revision: 49919 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49919 Log: * test/rubygems/test_gem_security_trust_dir.rb: The return value of File::Stat#mode is OS dependent. In AIX, 0200000 is set. Modified files: trunk/ChangeLog trunk/test/rubygems/test_gem_security_trust_dir.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 49918) +++ ChangeLog (revision 49919) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Mar 11 00:57:00 2015 Rei Odaira <Rei.Odaira@g...> + + * 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 <akr@f...> * lib/webrick/server.rb: Invoke setup_shutdown_pipe in start method Index: test/rubygems/test_gem_security_trust_dir.rb =================================================================== --- test/rubygems/test_gem_security_trust_dir.rb (revision 49918) +++ test/rubygems/test_gem_security_trust_dir.rb (revision 49919) @@ -70,6 +70,7 @@ class TestGemSecurityTrustDir < Gem::Tes https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_security_trust_dir.rb#L70 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::Tes https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_security_trust_dir.rb#L91 @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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/