diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-24 11:07:50 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-24 11:07:50 +0000 |
commit | d7b7f56c8c3017073bd8ff5917367bbfb8af206a (patch) | |
tree | 002e512f6967be072d149411c644a483bf72fed6 /test/ruby | |
parent | bee4e843ce20dd899eb86fd2f6947e6573b20465 (diff) | |
download | ruby-d7b7f56c8c3017073bd8ff5917367bbfb8af206a.tar.gz |
* test/openssl/test_engine.rb: use IO#reopen to restore stderr.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_io.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index af161eae26..8899994897 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -2157,4 +2157,13 @@ End } } end + + def test_std_fileno + assert_equal(0, STDIN.fileno) + assert_equal(1, STDOUT.fileno) + assert_equal(2, STDERR.fileno) + assert_equal(0, $stdin.fileno) + assert_equal(1, $stdout.fileno) + assert_equal(2, $stderr.fileno) + end end |