diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-08-18 22:19:44 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-08-18 22:24:12 +0900 |
commit | 207ead9c689241d1746a8515946fc7fc0685bd29 (patch) | |
tree | 15785a641cbd60ed8d0da3a32834d482da24d695 /test | |
parent | 376df2612386213982065c198cb048859004a335 (diff) | |
download | ruby-openssl-207ead9c689241d1746a8515946fc7fc0685bd29.tar.gz |
test: rename MDEBUG environment variable to OSSL_MDEBUG
Diffstat (limited to 'test')
-rw-r--r-- | test/test_engine.rb | 2 | ||||
-rw-r--r-- | test/utils.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/test_engine.rb b/test/test_engine.rb index 529a8010..2d394cf7 100644 --- a/test/test_engine.rb +++ b/test/test_engine.rb @@ -83,7 +83,7 @@ class OpenSSL::TestEngine < OpenSSL::TestCase # this is required because OpenSSL::Engine methods change global state def with_openssl(code) - assert_separately([{ "MDEBUG" => nil }, "-ropenssl"], <<~"end;") + assert_separately([{ "OSSL_MDEBUG" => nil }, "-ropenssl"], <<~"end;") require #{__FILE__.dump} include OpenSSL::TestEngine::Utils #{code} diff --git a/test/utils.rb b/test/utils.rb index fc303d1d..6b1487d3 100644 --- a/test/utils.rb +++ b/test/utils.rb @@ -9,9 +9,9 @@ begin rescue LoadError end -# Compile OpenSSL with crypto-mdebug and run this test suite with MDEBUG +# Compile OpenSSL with crypto-mdebug and run this test suite with OSSL_MDEBUG=1 # environment variable to enable memory leak check. -if ENV["MDEBUG"] +if ENV["OSSL_MDEBUG"] == "1" begin require "mdebug" rescue LoadError |