[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
This commit is contained in:
Jun Aruga 2023-09-19 19:12:01 +02:00 коммит произвёл git
Родитель 22a44735f0
Коммит 3123b2fa0e
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -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