mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Revert "[ruby/fileutils] Make verbose output go to stdout instead of stderr"
This reverts commit 7cddb844e6
,
because the test of rake 13.0.1 is depending on the previous
behavior.
This commit is contained in:
parent
cc9ca468fe
commit
510df47f5f
2 changed files with 6 additions and 6 deletions
|
@ -1612,7 +1612,7 @@ module FileUtils
|
|||
|
||||
def fu_output_message(msg) #:nodoc:
|
||||
output = @fileutils_output if defined?(@fileutils_output)
|
||||
output ||= $stdout
|
||||
output ||= $stderr
|
||||
if defined?(@fileutils_label)
|
||||
msg = @fileutils_label + msg
|
||||
end
|
||||
|
|
|
@ -1722,16 +1722,16 @@ class TestFileUtils < Test::Unit::TestCase
|
|||
o.extend(FileUtils)
|
||||
o.singleton_class.send(:public, :chdir)
|
||||
o.freeze
|
||||
orig_stdout = $stdout
|
||||
$stdout = StringIO.new
|
||||
orig_stderr = $stderr
|
||||
$stderr = StringIO.new
|
||||
o.chdir('.', verbose: true){}
|
||||
$stdout.rewind
|
||||
assert_equal(<<-END, $stdout.read)
|
||||
$stderr.rewind
|
||||
assert_equal(<<-END, $stderr.read)
|
||||
cd .
|
||||
cd -
|
||||
END
|
||||
ensure
|
||||
$stdout = orig_stdout if orig_stdout
|
||||
$stderr = orig_stderr if orig_stderr
|
||||
end
|
||||
|
||||
def test_getwd
|
||||
|
|
Loading…
Reference in a new issue