Permalink
Browse files

lib/test/unit.rb: split platform condition

* lib/test/unit.rb (Test::Unit::Runner#_prepare_run): split platform condition.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
1 parent 2f76e6d commit 7d303b2d10febdeafde9f70c1e8e54e91c54f42b @nobu nobu committed May 30, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/test/unit.rb
View
3 lib/test/unit.rb
@@ -671,7 +671,8 @@ def _prepare_run(suites, type)
when :always
color = true
when :auto, nil
- color = @options[:job_status] == :replace && /mswin|mingw/ !~ RUBY_PLATFORM && /dumb/ !~ ENV["TERM"]
+ color = @options[:job_status] == :replace && /dumb/ !~ ENV["TERM"]
+ color &&= /mswin|mingw/ !~ RUBY_PLATFORM
else
color = false
end

0 comments on commit 7d303b2

Please sign in to comment.