aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_file.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_file.rb')
-rw-r--r--test/ruby/test_file.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb
index d0f11882e5..537deefed3 100644
--- a/test/ruby/test_file.rb
+++ b/test/ruby/test_file.rb
@@ -336,6 +336,8 @@ class TestFile < Test::Unit::TestCase
end
assert_in_delta t0+6, stat.atime.to_f, delta
rescue NotImplementedError
+ ensure
+ file.close!
end
def test_chmod_m17n