summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-08 08:09:06 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-08 08:09:06 +0000
commit11aa04e28fc9b6e6e0d82ccca69359eb9fa276af (patch)
treeabb4ca434a2ffdfd70b7a3cb742c4373f5faa08f /test
parent04bc7dbc8b4d35aeee043214effe3cf664fa4d00 (diff)
merges r29632 from trunk into ruby_1_9_2.
-- * test/pathname/test_pathname.rb (TestPathname#test_grpowned?): the group of the created file is inherited from the parent directory on BSDs and MacOS X. Linux also inherit the group if the setgid bit of the directory is set. It causes the test fail. fixed by Shota Fukumori. [ruby-dev:42458] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@30130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/pathname/test_pathname.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb
index 2be1c23a93..6d44ec1b80 100644
--- a/test/pathname/test_pathname.rb
+++ b/test/pathname/test_pathname.rb
@@ -938,6 +938,7 @@ class TestPathname < Test::Unit::TestCase
skip "Unix file owner test" if DOSISH
with_tmpchdir('rubytest-pathname') {|dir|
open("f", "w") {|f| f.write "abc" }
+ File.chown(-1, Process.gid, "f")
assert_equal(true, Pathname("f").grpowned?)
}
end