1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[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
if /mswin|mingw/ =~ RUBY_PLATFORM
if /mswin|mingw|cygwin/ =~ RUBY_PLATFORM
def lock_shift_log
yield
end

View file

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