From 65825bace77d5656e5297f8003d45853e8e6fd6e Mon Sep 17 00:00:00 2001 From: quix Date: Sun, 22 May 2011 20:11:47 -0400 Subject: [PATCH] add threads to some tests --- test/test_rake_task_argument_parsing.rb | 3 +++ test/test_rake_win32.rb | 1 + 2 files changed, 4 insertions(+) diff --git a/test/test_rake_task_argument_parsing.rb b/test/test_rake_task_argument_parsing.rb index e7826fd81..d5497525a 100644 --- a/test/test_rake_task_argument_parsing.rb +++ b/test/test_rake_task_argument_parsing.rb @@ -99,6 +99,7 @@ def test_no_rakeopt in_environment do ARGV << '--trace' app = Rake::Application.new + app.options.threads = Rake.application.options.threads app.init assert !app.options.silent end @@ -108,6 +109,7 @@ def test_rakeopt_with_blank_options in_environment("RAKEOPT" => "") do ARGV << '--trace' app = Rake::Application.new + app.options.threads = Rake.application.options.threads app.init assert !app.options.silent end @@ -116,6 +118,7 @@ def test_rakeopt_with_blank_options def test_rakeopt_with_silent_options in_environment("RAKEOPT" => "-s") do app = Rake::Application.new + app.options.threads = Rake.application.options.threads app.init assert app.options.silent end diff --git a/test/test_rake_win32.rb b/test/test_rake_win32.rb index d6ba0f201..15133aeff 100644 --- a/test/test_rake_win32.rb +++ b/test/test_rake_win32.rb @@ -72,6 +72,7 @@ def test_win32_backtrace_with_different_case ex.set_backtrace ['abc', 'rakefile'] rake = Rake::Application.new + rake.options.threads = Rake.application.options.threads rake.options.trace = true rake.instance_variable_set(:@rakefile, 'Rakefile')