Skip to content

Commit

Permalink
Consider cygwin a Windows platform
Browse files Browse the repository at this point in the history
This should fix Ruby Bug 12468.
  • Loading branch information
jeremyevans committed Sep 22, 2020
1 parent daf1dc5 commit 49de53d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/logger/log_device.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def check_shift_log
end
end

if /mswin|mingw/ =~ RUBY_PLATFORM
if /mswin|mingw|cygwin/ =~ RUBY_PLATFORM
def lock_shift_log
yield
end
Expand Down
2 changes: 1 addition & 1 deletion test/logger/test_logdevice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ def test_shifting_size_not_rotate_too_much
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|
Expand Down

0 comments on commit 49de53d

Please sign in to comment.