Project

General

Profile

Actions

Bug #344

closed

File.grpowned?のテスト

Added by znz (Kazuhiro NISHIYAMA) over 16 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
-
ruby -v:
?
Backport:
[ruby-dev:35633]

Description

=begin
西山和広です。

Mac OS Xでassert(File.grpowned?(@file))がFailureになります。

  1. Failure:
    test_owned_p(TestFileExhaustive) [/Users/nishiyamakazuhiro/wc/ruby-lang/trunk/test/ruby/test_file_exhaustive.rb:240]:
    is not true.

  2. Failure:
    test_stat_owned_p(TestFileExhaustive) [/Users/nishiyamakazuhiro/wc/ruby-lang/trunk/test/ruby/test_file_exhaustive.rb:698]:
    is not true.

テストを実行するユーザがDir.mktmpdirの/tmp/のグループに入っていなくて、
ディレクトリにsetgidされていなくてもディレクトリのグループが、新規作成
される中のファイルに継承される環境(BSD系?)で起きるのではないかと思います。

$ touch ~/foo /tmp/foo
$ ls -ld ~ ~/foo /tmp /tmp/ /tmp/foo
drwxr-xr-x+ 26 nishiyamakazuhiro staff 884 Jul 23 07:46 /Users/nishiyamakazuhiro
-rw-r--r-- 1 nishiyamakazuhiro staff 0 Jul 23 07:47 /Users/nishiyamakazuhiro/foo
lrwxr-xr-x@ 1 root admin 11 Jul 16 16:29 /tmp -> private/tmp
drwxrwxrwt 9 root wheel 306 Jul 23 07:46 /tmp/
-rw-r--r-- 1 nishiyamakazuhiro wheel 0 Jul 23 07:47 /tmp/foo
$ id
uid=501(nishiyamakazuhiro) gid=20(staff) groups=20(staff),98(_lpadmin),81(_appserveradm),101(com.apple.sharepoint.group.1),79(_appserverusr),80(admin)
$

--
|ZnZ(ゼット エヌ ゼット)
|西山和広(Kazuhiro NISHIYAMA)
=end


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #3985: test_pathname fail on OSX via cronClosedakr (Akira Tanaka)10/26/2010Actions
Actions #1

Updated by ko1 (Koichi Sasada) over 16 years ago

  • Assignee set to znz (Kazuhiro NISHIYAMA)

=begin

=end

Actions #2

Updated by znz (Kazuhiro NISHIYAMA) over 16 years ago

  • Status changed from Open to Closed

=begin

=end

Actions #3

Updated by znz (Kazuhiro NISHIYAMA) about 14 years ago

  • ruby -v set to ?

=begin
r18593
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0