aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2020-02-22 04:58:08 +0900
committerKazuki Yamaguchi <k@rhe.jp>2020-05-13 16:01:18 +0900
commitb70817faec1ca45cebe533a02617e7ac04d5ecbc (patch)
tree319cf0d6a4824ccf9b2e4d2bae2bb10d04f35915 /test
parent259e6fd2dcdf624627f95071460fdc17b98d4a39 (diff)
downloadruby-openssl-b70817faec1ca45cebe533a02617e7ac04d5ecbc.tar.gz
test/openssl/test_config: skip test_get_value_ENV on LibreSSL
LibreSSL has removed the feature to map environment variables onto the "ENV" section.
Diffstat (limited to 'test')
-rw-r--r--test/openssl/test_config.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/openssl/test_config.rb b/test/openssl/test_config.rb
index a725add2..01be2816 100644
--- a/test/openssl/test_config.rb
+++ b/test/openssl/test_config.rb
@@ -215,6 +215,9 @@ __EOC__
end
def test_get_value_ENV
+ # LibreSSL removed support for NCONF_get_string(conf, "ENV", str)
+ return if libressl?
+
key = ENV.keys.first
assert_not_nil(key) # make sure we have at least one ENV var.
assert_equal(ENV[key], @it.get_value('ENV', key))