Skip to content

Commit 61a99ed

Browse files
committed
Try to test with rake-13.0.2 again.
[ruby/fileutils] Make verbose output go to stdout instead of stderr This reverts commit 510df47f5f7f83918d3aa00316c8a5b959d80d7c.
1 parent e0e47ca commit 61a99ed

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/fileutils.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1623,7 +1623,7 @@ def fu_same?(a, b) #:nodoc:
16231623

16241624
def fu_output_message(msg) #:nodoc:
16251625
output = @fileutils_output if defined?(@fileutils_output)
1626-
output ||= $stderr
1626+
output ||= $stdout
16271627
if defined?(@fileutils_label)
16281628
msg = @fileutils_label + msg
16291629
end

test/fileutils/test_fileutils.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1748,16 +1748,16 @@ def test_chdir_verbose_frozen
17481748
o.extend(FileUtils)
17491749
o.singleton_class.send(:public, :chdir)
17501750
o.freeze
1751-
orig_stderr = $stderr
1752-
$stderr = StringIO.new
1751+
orig_stdout = $stdout
1752+
$stdout = StringIO.new
17531753
o.chdir('.', verbose: true){}
1754-
$stderr.rewind
1755-
assert_equal(<<-END, $stderr.read)
1754+
$stdout.rewind
1755+
assert_equal(<<-END, $stdout.read)
17561756
cd .
17571757
cd -
17581758
END
17591759
ensure
1760-
$stderr = orig_stderr if orig_stderr
1760+
$stdout = orig_stdout if orig_stdout
17611761
end
17621762

17631763
def test_getwd

0 commit comments

Comments
 (0)