summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_engine.rb2
-rw-r--r--test/utils.rb4
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 5de26601..ff44e076 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