Skip to content

Commit 22bbece

Browse files
AdamMajertargos
authored andcommitted
test: fix regression when compiled with FIPS
In commit bff53c5, a check was added for very specific OpenSSL format. Unfortunately, when OpenSSL is compiled in FIPS mode, this check fails. Added additional regex to satisfy OpenSSL version strings in both regular and FIPS modes. PR-URL: #23871 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 2c2e2b5 commit 22bbece

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-process-versions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ assert(/^\d+\.\d+\.\d+(?:\.\d+)?-node\.\d+(?: \(candidate\))?$/
3434
assert(/^\d+$/.test(process.versions.modules));
3535

3636
if (common.hasCrypto) {
37-
assert(/^\d+\.\d+\.\d+[a-z]?$/.test(process.versions.openssl));
37+
assert(/^\d+\.\d+\.\d+[a-z]?(-fips)?$/.test(process.versions.openssl));
3838
}
3939

4040
for (let i = 0; i < expected_keys.length; i++) {

0 commit comments

Comments
 (0)