diff options
author | Hiroshi SHIBATA <[email protected]> | 2020-12-19 16:53:18 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2020-12-19 16:53:18 +0900 |
commit | 349e79bae02a8a161c06ba5f6fa203d609f6e8b9 (patch) | |
tree | b207b3664f60f0aaf20f8881ccd07dd451606bd4 /test | |
parent | bdd18090ad75cd5659b561890756c5e0b1227b69 (diff) |
Try to test with rake-13.0.2 again.
[ruby/fileutils] Make verbose output go to stdout instead of stderr
This reverts commit 510df47f5f7f83918d3aa00316c8a5b959d80d7c.
Diffstat (limited to 'test')
-rw-r--r-- | test/fileutils/test_fileutils.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/fileutils/test_fileutils.rb b/test/fileutils/test_fileutils.rb index fbc8e3dd83..63936d1a05 100644 --- a/test/fileutils/test_fileutils.rb +++ b/test/fileutils/test_fileutils.rb @@ -1748,16 +1748,16 @@ class TestFileUtils < Test::Unit::TestCase o.extend(FileUtils) o.singleton_class.send(:public, :chdir) o.freeze - orig_stderr = $stderr - $stderr = StringIO.new + orig_stdout = $stdout + $stdout = StringIO.new o.chdir('.', verbose: true){} - $stderr.rewind - assert_equal(<<-END, $stderr.read) + $stdout.rewind + assert_equal(<<-END, $stdout.read) cd . cd - END ensure - $stderr = orig_stderr if orig_stderr + $stdout = orig_stdout if orig_stdout end def test_getwd |