aboutsummaryrefslogtreecommitdiffstats
path: root/test/shell
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-05 08:10:32 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-05 08:10:32 +0000
commitb2f7e64caf2e2ed31ebc28f3dd01726f98258c8a (patch)
treed096ef48e4470594f993ae4c5cb67c4b789849a0 /test/shell
parent9d2c2c2b46b11e367fc3a4e2ea7371f614bc7bd9 (diff)
downloadruby-b2f7e64caf2e2ed31ebc28f3dd01726f98258c8a.tar.gz
test_command_processor.rb: clear tmpdir
* test/shell/test_command_processor.rb (TestShell#teardown): should not leave temporary directories. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/shell')
-rw-r--r--test/shell/test_command_processor.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/shell/test_command_processor.rb b/test/shell/test_command_processor.rb
index 7e8ff9fb28..2d3f8a4b1a 100644
--- a/test/shell/test_command_processor.rb
+++ b/test/shell/test_command_processor.rb
@@ -11,6 +11,10 @@ class TestShell::CommandProcessor < Test::Unit::TestCase
@shell.system_path = [@tmpdir]
end
+ def teardown
+ Dir.rmdir(@tmpdir)
+ end
+
def catch_command_start(tc = Object.new)
@shell.process_controller.singleton_class.class_eval do
define_method(:add_schedule) {|cmd| throw tc, cmd}