diff options
Diffstat (limited to 'activesupport/test/core_ext/kernel_test.rb')
-rw-r--r-- | activesupport/test/core_ext/kernel_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/kernel_test.rb b/activesupport/test/core_ext/kernel_test.rb index 60c3d1ba86..44e3b87241 100644 --- a/activesupport/test/core_ext/kernel_test.rb +++ b/activesupport/test/core_ext/kernel_test.rb @@ -34,6 +34,8 @@ class KernelTest < Test::Unit::TestCase old_stderr_position = STDERR.tell silence_stderr { STDERR.puts 'hello world' } assert_equal old_stderr_position, STDERR.tell + rescue Errno::ESPIPE + # Skip if we can't STDERR.tell end def test_silence_stderr_with_return_value |