diff options
author | akr <akr@ruby-lang.org> | 2011-11-24 11:07:50 +0000 |
---|---|---|
committer | akr <akr@ruby-lang.org> | 2011-11-24 11:07:50 +0000 |
commit | 020d19e76643aefb5b985ad6293bce0ad3866003 (patch) | |
tree | 71260633673ef1d440f36c7df64715727ac79e88 /test | |
parent | 2973589c1507e362619158eb00a03c289a417521 (diff) | |
download | ruby-openssl-history-020d19e76643aefb5b985ad6293bce0ad3866003.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')
-rw-r--r-- | test/test_engine.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test_engine.rb b/test/test_engine.rb index f56fbe7..a6b2cf0 100644 --- a/test/test_engine.rb +++ b/test/test_engine.rb @@ -53,7 +53,10 @@ class OpenSSL::TestEngine < Test::Unit::TestCase assert_equal(data, decrypted) cleanup ensure - $stderr = err_back if err_back + if err_back + $stderr.reopen(err_back) + err_back.close + end end private |