diff options
author | Jun Aruga <jaruga@redhat.com> | 2023-09-19 19:12:01 +0200 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-09-21 18:04:55 +0000 |
commit | 3123b2fa0e2e5eddde4f751e084282ba655cbd57 (patch) | |
tree | b5572e06013eb3f44896dcf7d8e592a85ef57cb4 | |
parent | 22a44735f08009cd53c5aa9a7e912378869aa29a (diff) |
[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
-rw-r--r-- | test/openssl/test_fips.rb | 6 |
1 files 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 |