diff options
author | Nobuyoshi Nakada <[email protected]> | 2024-10-09 14:05:57 +0900 |
---|---|---|
committer | git <[email protected]> | 2024-12-04 07:45:39 +0000 |
commit | edd3977b4024c27b92a8e132b2762226298a475a (patch) | |
tree | 09c8eee6a05605c3e1406cd413a885655274a65a /test | |
parent | ed47b6b32445107e870d8b1e9825141802fb8fdd (diff) |
[ruby/logger] Enable log file rotation on Windows
Since ruby 2.3, a file opened with `File::SHARE_DELETE` and
`File::BINARY` can be renamed or removed.
https://github.com/ruby/logger/commit/7b6146fee6
Diffstat (limited to 'test')
-rw-r--r-- | test/logger/test_logdevice.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/logger/test_logdevice.rb b/test/logger/test_logdevice.rb index 8f1c15542a..610905e542 100644 --- a/test/logger/test_logdevice.rb +++ b/test/logger/test_logdevice.rb @@ -452,7 +452,7 @@ class TestLogDevice < Test::Unit::TestCase end ensure logdev0.close - end unless /mswin|mingw|cygwin/ =~ RbConfig::CONFIG['host_os'] + end def test_shifting_midnight Dir.mktmpdir do |tmpdir| |