summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-08-24 01:55:31 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-08-24 01:55:31 +0000
commitc68ec2688753fec46358a205cdd9fc293def1955 (patch)
treeb75cf8802c382a315fefe712fdbb1e37c193300d /test
parent5b6f86d8f339d38b961a8bf37dbd62e288a58085 (diff)
* 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/branches/ruby_1_8@9025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/logger/test_logger.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/logger/test_logger.rb b/test/logger/test_logger.rb
index 3528ff2..7f11a30 100644
--- a/test/logger/test_logger.rb
+++ b/test/logger/test_logger.rb
@@ -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)