[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
@ -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
|
||||||
|
@ -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|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user