GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: relax version check with shared OpenSSL · nodejs/node@4e34f9a

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-process-versions.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-process-versions.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-process-versions.js
+11-7Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,17 @@ assert.match(process.versions.modules, /^\d+$/);
7575
assert.match(process.versions.cjs_module_lexer, commonTemplate);
7676

7777
if (common.hasCrypto) {
78-
const versionRegex = common.hasOpenSSL3 ?
79-
// The following also matches a development version of OpenSSL 3.x which
80-
// can be in the format '3.0.0-alpha4-dev'. This can be handy when building
81-
// and linking against the main development branch of OpenSSL.
82-
/^\d+\.\d+\.\d+(?:[-+][a-z0-9]+)*$/ :
83-
/^\d+\.\d+\.\d+[a-z]?(\+quic)?(-fips)?$/;
84-
assert.match(process.versions.openssl, versionRegex);
78+
if (process.config.variables.node_shared_openssl) {
79+
assert.ok(process.versions.openssl);
80+
} else {
81+
const versionRegex = common.hasOpenSSL3 ?
82+
// The following also matches a development version of OpenSSL 3.x which
83+
// can be in the format '3.0.0-alpha4-dev'. This can be handy when
84+
// building and linking against the main development branch of OpenSSL.
85+
/^\d+\.\d+\.\d+(?:[-+][a-z0-9]+)*$/ :
86+
/^\d+\.\d+\.\d+[a-z]?(\+quic)?(-fips)?$/;
87+
assert.match(process.versions.openssl, versionRegex);
88+
}
8589
}
8690

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

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.