From b1e6de80c1b9c1fdf69cfc3af8701e53c9fe785c Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Thu, 25 Oct 2018 13:19:27 +0200 Subject: [PATCH] test: fix regression when compiled with FIPS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In commit bff53c5a9d6, 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: https://github.com/nodejs/node/pull/23871 Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Tobias Nießen Reviewed-By: Refael Ackermann Reviewed-By: Richard Lau Reviewed-By: Michael Dawson Reviewed-By: Sam Roberts Reviewed-By: Luigi Pinca --- test/parallel/test-process-versions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-process-versions.js b/test/parallel/test-process-versions.js index 18484bdf4f155e..48c0e1611e3f63 100644 --- a/test/parallel/test-process-versions.js +++ b/test/parallel/test-process-versions.js @@ -34,7 +34,7 @@ assert(/^\d+\.\d+\.\d+(?:\.\d+)?(?: \(candidate\))?$/ assert(/^\d+$/.test(process.versions.modules)); if (common.hasCrypto) { - assert(/^\d+\.\d+\.\d+[a-z]?$/.test(process.versions.openssl)); + assert(/^\d+\.\d+\.\d+[a-z]?(-fips)?$/.test(process.versions.openssl)); } for (let i = 0; i < expected_keys.length; i++) {