From fea0365dea00cf7a120c07b76f9cc47c2d66e105 Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 29 Oct 2010 21:40:09 +0000 Subject: * 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/trunk@29632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 8 ++++++++ test/pathname/test_pathname.rb | 1 + 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6841c87abb..ca717c7b25 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +Sat Oct 30 06:32:52 2010 Tanaka Akira + + * 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] + Sat Oct 30 05:58:54 2010 Tanaka Akira * lib/resolv.rb: retry via TCP if UDP reply is truncated. diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb index 235d0fb2ee..86b85b894a 100644 --- a/test/pathname/test_pathname.rb +++ b/test/pathname/test_pathname.rb @@ -995,6 +995,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 -- cgit v1.2.3