ruby-changes:17624
From: akr <ko1@a...>
Date: Sat, 30 Oct 2010 06:51:32 +0900 (JST)
Subject: [ruby-changes:17624] Ruby:r29632 (trunk): * test/pathname/test_pathname.rb (TestPathname#test_grpowned?): the
akr 2010-10-30 06:40:09 +0900 (Sat, 30 Oct 2010) New Revision: 29632 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29632 Log: * 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] Modified files: trunk/ChangeLog trunk/test/pathname/test_pathname.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 29631) +++ ChangeLog (revision 29632) @@ -1,3 +1,11 @@ +Sat Oct 30 06:32:52 2010 Tanaka Akira <akr@f...> + + * 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 <akr@f...> * lib/resolv.rb: retry via TCP if UDP reply is truncated. Index: test/pathname/test_pathname.rb =================================================================== --- test/pathname/test_pathname.rb (revision 29631) +++ test/pathname/test_pathname.rb (revision 29632) @@ -995,6 +995,7 @@ 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/