ruby-changes:31458
From: nobu <ko1@a...>
Date: Tue, 5 Nov 2013 17:10:38 +0900 (JST)
Subject: [ruby-changes:31458] nobu:r43537 (trunk): test_command_processor.rb: clear tmpdir
nobu 2013-11-05 17:10:32 +0900 (Tue, 05 Nov 2013) New Revision: 43537 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43537 Log: test_command_processor.rb: clear tmpdir * test/shell/test_command_processor.rb (TestShell#teardown): should not leave temporary directories. Modified files: trunk/test/shell/test_command_processor.rb Index: test/shell/test_command_processor.rb =================================================================== --- test/shell/test_command_processor.rb (revision 43536) +++ test/shell/test_command_processor.rb (revision 43537) @@ -11,6 +11,10 @@ class TestShell::CommandProcessor < Test https://github.com/ruby/ruby/blob/trunk/test/shell/test_command_processor.rb#L11 @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} -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/