summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/test_tmpdir.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_tmpdir.rb b/test/test_tmpdir.rb
index 61d3f60213..3bdce3542c 100644
--- a/test/test_tmpdir.rb
+++ b/test/test_tmpdir.rb
@@ -28,5 +28,6 @@ class TestTmpdir < Test::Unit::TestCase
assert_match(/\A~/, File.basename(dir), bug7547)
ensure
ENV["HOME"] = home
+ Dir.rmdir(dir) if dir
end
end