mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
f436de8f31
commit
d4a1804eb1
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Mar 11 00:57:00 2015 Rei Odaira <Rei.Odaira@gmail.com>
|
||||
|
||||
* 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@fsij.org>
|
||||
|
||||
* lib/webrick/server.rb: Invoke setup_shutdown_pipe in start method
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue