aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJun Aruga <jaruga@redhat.com>2023-09-19 19:12:01 +0200
committerJun Aruga <jaruga@redhat.com>2023-09-20 14:48:06 +0200
commit2fe3438d8a550819801df0b78fc4b93fe11cfff4 (patch)
tree2b90fd4204bfbf07b6aeea2b0649af91f9a7fcba /test
parent0b83eed154de435fd377106cdeb568be5cb4ec5c (diff)
downloadruby-openssl-2fe3438d8a550819801df0b78fc4b93fe11cfff4.tar.gz
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.
Diffstat (limited to 'test')
-rw-r--r--test/openssl/test_fips.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/openssl/test_fips.rb b/test/openssl/test_fips.rb
index 43042bea..4a3dd43a 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