Project

General

Profile

Bug #12541

test failure with `umask 027`

Added by znz (Kazuhiro NISHIYAMA) about 3 years ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby -v: ruby 2.4.0dev (2016-07-02 trunk 55562) [x86_64-linux]
[ruby-dev:49705]

Description

ruby -e 'system("make", "test-all", "TESTS=fileutils/test_fileutils.rb", umask: 027)' などのように umask 027 の環境で実行すると TestFileUtils#test_cp_preserve_permissions が failure になります。

[31/91] TestFileUtils#test_cp_preserve_permissions = 0.00 s
  1) Failure:
TestFileUtils#test_cp_preserve_permissions [/home/vagrant/ruby/test/fileutils/test_fileutils.rb:286]:
File modes expected to be equal:
 <0755>: "tmp/cptmp"
 <0750>: "tmp/cptmp2"

Also available in: Atom PDF