summaryrefslogtreecommitdiff
path: root/test/parallel
diff options
context:
space:
mode:
authorSam Roberts <vieuxtech@gmail.com>2018-10-15 15:15:26 -0700
committerRod Vagg <rod@vagg.org>2018-11-28 11:26:47 +1100
commit73d19b15160a39f40ef725ac353066079cd7b5df (patch)
tree9ce50d0fa724a3b7a199265a41c2300ef7b6067f /test/parallel
parent544e64d68dd1d9098602dbdaba1cf595880fc253 (diff)
downloadnode-new-73d19b15160a39f40ef725ac353066079cd7b5df.tar.gz
test: ensure openssl version prints correctly
PR-URL: https://github.com/nodejs/node/pull/23678 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Diffstat (limited to 'test/parallel')
-rw-r--r--test/parallel/test-process-versions.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/parallel/test-process-versions.js b/test/parallel/test-process-versions.js
index 29325d531c..18484bdf4f 100644
--- a/test/parallel/test-process-versions.js
+++ b/test/parallel/test-process-versions.js
@@ -33,6 +33,10 @@ assert(/^\d+\.\d+\.\d+(?:\.\d+)?(?: \(candidate\))?$/
.test(process.versions.v8));
assert(/^\d+$/.test(process.versions.modules));
+if (common.hasCrypto) {
+ assert(/^\d+\.\d+\.\d+[a-z]?$/.test(process.versions.openssl));
+}
+
for (let i = 0; i < expected_keys.length; i++) {
const key = expected_keys[i];
const descriptor = Object.getOwnPropertyDescriptor(process.versions, key);