mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/logger/test_logger.rb (test_shifting_size): should close log
device before unlink, since some platform cannot unlink opened file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
acbee0bda7
commit
08324a4098
2 changed files with 8 additions and 0 deletions
|
|
@ -301,6 +301,7 @@ class TestLogDevice < Test::Unit::TestCase
|
|||
assert(!File.exist?(logfile3))
|
||||
logger.error("0" * 15)
|
||||
assert(!File.exist?(logfile3))
|
||||
logger.close
|
||||
File.unlink(logfile)
|
||||
File.unlink(logfile0)
|
||||
File.unlink(logfile1)
|
||||
|
|
@ -336,6 +337,7 @@ class TestLogDevice < Test::Unit::TestCase
|
|||
assert(!File.exist?(logfile3))
|
||||
logger.error("0" * 15)
|
||||
assert(!File.exist?(logfile3))
|
||||
logger.close
|
||||
File.unlink(logfile)
|
||||
File.unlink(logfile0)
|
||||
File.unlink(logfile1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue