diff options
author | nahi <nahi@ruby-lang.org> | 2010-08-19 08:22:31 +0000 |
---|---|---|
committer | nahi <nahi@ruby-lang.org> | 2010-08-19 08:22:31 +0000 |
commit | 4df3553c162ef66acd83af71f244b2c9bf0b04b3 (patch) | |
tree | 13ed949ae0ee56f7cec060b1363538e0e9aeb26b /test/utils.rb | |
parent | 2502a6719faabcdf9250981428775b11db0a618b (diff) | |
download | ruby-openssl-history-4df3553c162ef66acd83af71f244b2c9bf0b04b3.tar.gz |
* backport r28621 and r28632 from ruby_1_8;
* ext/openssl/ossl_config.c, ext/openssl/lib/openssl/config.rb,
ext/openssl/lib/openssl.rb: reimplement OpenSSL::Config in Ruby.
Now it should work on windows.
* test/openssl/test_config.rb: added tests for OpenSSL::Config#dup.
* test/openssl/test_config.rb: added tests for Config#clone.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/utils.rb')
-rw-r--r-- | test/utils.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/utils.rb b/test/utils.rb index 2edb7b0..0e19eec 100644 --- a/test/utils.rb +++ b/test/utils.rb @@ -132,4 +132,13 @@ Q1VB8qkJN7rA7/2HrCR3gTsWNb1YhAsnFsoeRscC+LxXoXi9OAIUBG98h4tilg6S pkvalue = publickey.value OpenSSL::Digest::SHA1.hexdigest(pkvalue).scan(/../).join(":").upcase end + + def silent + begin + back, $VERBOSE = $VERBOSE, nil + yield + ensure + $VERBOSE = back if back + end + end end |