diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2020-04-22 14:37:42 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-04-28 10:57:21 +0900 |
commit | 2c2b0d4ec1bc3ede33b056e24dea011edc69bd5f (patch) | |
tree | 5c1c593ac2551ba4ce866ba9bf3438168dc478a1 /test/rubygems/test_gem_installer.rb | |
parent | de58dfc911738b2cbb2b848fa2e2cc93616a0ec5 (diff) |
[rubygems/rubygems] Make the test suite pass under `umask 077`
Some tests had failed under `umask 077` mode. As far as I investigated,
there is no actual bug. All failures were caused by tests that create a
wrong-permission file or expect wrong permission.
This changeset fixes the tests.
https://github.com/rubygems/rubygems/commit/078213e527
Diffstat (limited to 'test/rubygems/test_gem_installer.rb')
-rw-r--r-- | test/rubygems/test_gem_installer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rubygems/test_gem_installer.rb b/test/rubygems/test_gem_installer.rb index 89fcecb68d..34759a8fd0 100644 --- a/test/rubygems/test_gem_installer.rb +++ b/test/rubygems/test_gem_installer.rb @@ -2200,7 +2200,7 @@ gem 'other', version end def mask - 0100755 & (~File.umask) + 0100755 end end |