Commit 5047006
test: use regex for OpenSSL function name
This commit modifies test-crypt-scrypt.js to use a regular expression
for the function name in the error message, similar to what is done for
the error code.
The motivation for this change comes from a case where we (Red Hat)
patch OpenSSL and the memory limit checking is done in a different
function, meaning that the function name from which this error
originates differs from that when linking to the OpenSSL version shipped
with Node.js.
PR-URL: #28289
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>1 parent f21ddb2 commit 5047006Copy full SHA for 5047006
File tree
Expand file treeCollapse file tree
1 file changed
+2
-1
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
1 file changed
+2
-1
lines changedOpen diff view settings
Collapse file
test/parallel/test-crypto-scrypt.js
Copy file name to clipboardExpand all lines: test/parallel/test-crypto-scrypt.js+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
169 | 169 | |
170 | 170 | |
171 | 171 | |
172 | | - |
| 172 | + |
| 173 | + |
173 | 174 | |
174 | 175 | |
175 | 176 | |
|
0 commit comments