[ruby/logger] Consider cygwin a Windows platform

This should fix Ruby Bug 12468.

https://github.com/ruby/logger/commit/49de53d1fc
This commit is contained in:
Jeremy Evans 2020-09-22 11:22:04 -07:00 committed by Hiroshi SHIBATA
parent 60b57866ac
commit 6f14a30022
2 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ class Logger
end end
end end
if /mswin|mingw/ =~ RUBY_PLATFORM if /mswin|mingw|cygwin/ =~ RUBY_PLATFORM
def lock_shift_log def lock_shift_log
yield yield
end end

View File

@ -451,7 +451,7 @@ class TestLogDevice < Test::Unit::TestCase
end end
ensure ensure
logdev0.close logdev0.close
end unless /mswin|mingw/ =~ RUBY_PLATFORM end unless /mswin|mingw|cygwin/ =~ RUBY_PLATFORM
def test_shifting_midnight def test_shifting_midnight
Dir.mktmpdir do |tmpdir| Dir.mktmpdir do |tmpdir|