diff options
author | Jesse Chavez <[email protected]> | 2022-01-26 14:05:21 -0500 |
---|---|---|
committer | git <[email protected]> | 2022-01-27 12:33:06 +0900 |
commit | 99d02caed3fb86a8bbe3ae6daddf2517e2f3f441 (patch) | |
tree | 985717e6eac13f8235ae63a028164b93bc91a4c6 /tool/lib/core_assertions.rb | |
parent | d3d888b9867e4fe6baa28d4f5351f72961a3bb1f (diff) |
[ruby/logger] Fix log rotation inter-process lock failed.
Issue only occurs in JRuby 9.3.0.0 and Windows and the full
console output is:
log rotation inter-process lock failed. D:\log.txt -> D:\log.txt.0: The process cannot access the file because it is being used by another process.
log writing failed. closed stream
log writing failed. closed stream
...
https://github.com/ruby/logger/commit/19fc734638
Diffstat (limited to 'tool/lib/core_assertions.rb')
-rw-r--r-- | tool/lib/core_assertions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/lib/core_assertions.rb b/tool/lib/core_assertions.rb index 51cb7ebf0d..e9c586f910 100644 --- a/tool/lib/core_assertions.rb +++ b/tool/lib/core_assertions.rb @@ -254,7 +254,7 @@ module Test line ||= loc.lineno end capture_stdout = true - unless /mswin|mingw/ =~ RUBY_PLATFORM + unless /mswin|mingw/ =~ RbConfig::CONFIG['host_os'] capture_stdout = false opt[:out] = Test::Unit::Runner.output if defined?(Test::Unit::Runner) res_p, res_c = IO.pipe |