From 1bc47a4c0fd2025e68191ed9a8263f77f0879106 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Fri, 23 Apr 2021 12:02:46 -0400 Subject: [PATCH] test: fix test to allow quictls fork of OpenSSL 3 The quictls fork of OpenSSL identifies itself with a `+quic` suffix in its version string. This was previously rejected by the version string check as the `+` was not an allowed character. PR-URL: https://github.com/nodejs/node/pull/38372 Refs: https://github.com/nodejs/node/commit/7ac626505d2f6f2e603bd7c9ddb356c893bbbe55 Reviewed-By: James M Snell Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig --- 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 56e3dc67e6a81c..ab2f217e963261 100644 --- a/test/parallel/test-process-versions.js +++ b/test/parallel/test-process-versions.js @@ -54,7 +54,7 @@ if (common.hasCrypto) { // The following also matches a development version of OpenSSL 3.x which // can be in the format '3.0.0-alpha4-dev'. This can be handy when building // and linking against the main development branch of OpenSSL. - /^\d+\.\d+\.\d+(-[-a-z0-9]+)?$/ : + /^\d+\.\d+\.\d+(?:[-+][a-z0-9]+)*$/ : /^\d+\.\d+\.\d+[a-z]?(\+quic)?(-fips)?$/; assert(versionRegex.test(process.versions.openssl)); }