Actions
Bug #3985
closedtest_pathname fail on OSX via cron
Description
=begin
Shota Fukumori (sora_h)です
pathnameのtest_grpowned?がcron上でfailします。
- Failure:
test_grpowned?(TestPathname) [/Users/sorah/git/ruby/ruby/test/pathname/test_pathname.rb:998]:
expected but was
.
原因はOSXの/tmp以下のdirectoryがwheelになるからで、File.chownすることで解消しました。
(なぜかコマンドラインからの実行だとfailしないけども)
パッチは以下です (git diff --no-prefixで生成):
diff --git test/pathname/test_pathname.rb test/pathname/test_pathname.rb
index 235d0fb..86b85b8 100644
--- test/pathname/test_pathname.rb
+++ 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
=end
Actions
Like0
Like0Like0Like0