summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-07 20:12:20 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-07 20:12:20 +0000
commitbd62d2a95ee0d237defe4a0fe584324b6cb4f0e8 (patch)
tree6555b19381b2b72f62967b0a12fdc10a524299f4
parent5789992f33b0755bfd462f4edb03a37e489e7fbc (diff)
lib/test/unit.rb: initialize instace variable
* lib/test/unit.rb (Test::Unit::Runner#output): suppress uninitialized instance variable warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/test/unit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test/unit.rb b/lib/test/unit.rb
index 2d25f2f2c3f..518ce04e7e2 100644
--- a/lib/test/unit.rb
+++ b/lib/test/unit.rb
@@ -656,7 +656,7 @@ module Test
alias mini_run_suite _run_suite
def output
- @output || super
+ (@output ||= nil) || super
end
def _prepare_run(suites, type)