From 3123b2fa0e2e5eddde4f751e084282ba655cbd57 Mon Sep 17 00:00:00 2001 From: Jun Aruga Date: Tue, 19 Sep 2023 19:12:01 +0200 Subject: [PATCH] [ruby/openssl] test_fips.rb: Fix the `OpenSSL.fips_mode` affecting other tests. Run the test with `assert_separately` for the `false` value of the `OpenSSL.fips_mode` not to affect other tests. https://github.com/ruby/openssl/commit/2fe3438d8a --- test/openssl/test_fips.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/openssl/test_fips.rb b/test/openssl/test_fips.rb index 43042beab8..4a3dd43a41 100644 --- a/test/openssl/test_fips.rb +++ b/test/openssl/test_fips.rb @@ -28,8 +28,10 @@ class OpenSSL::TestFIPS < OpenSSL::TestCase end def test_fips_mode_is_reentrant - OpenSSL.fips_mode = false - OpenSSL.fips_mode = false + assert_separately(["-ropenssl"], <<~"end;") + OpenSSL.fips_mode = false + OpenSSL.fips_mode = false + end; end def test_fips_mode_get_with_fips_mode_set