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:
parent
60b57866ac
commit
6f14a30022
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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|
|
||||
|
|
Loading…
Add table
Reference in a new issue