* 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
This commit is contained in:
akr 2010-10-29 21:40:09 +00:00
Родитель 2bb96458e7
Коммит fea0365dea
2 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -1,3 +1,11 @@
Sat Oct 30 06:32:52 2010 Tanaka Akira <akr@fsij.org>
* 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@fsij.org>
* lib/resolv.rb: retry via TCP if UDP reply is truncated.

Просмотреть файл

@ -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