From b2f7e64caf2e2ed31ebc28f3dd01726f98258c8a Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 5 Nov 2013 08:10:32 +0000 Subject: 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 --- test/shell/test_command_processor.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/shell') 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} -- cgit v1.2.3