This commit is contained in:
parent
9bdafd0eed
commit
a51f2e1115
23
test_strace.patch
Normal file
23
test_strace.patch
Normal file
@ -0,0 +1,23 @@
|
||||
Index: node-v20.1.0/test/parallel/test-strace-openat-openssl.js
|
||||
===================================================================
|
||||
--- node-v20.1.0.orig/test/parallel/test-strace-openat-openssl.js
|
||||
+++ node-v20.1.0/test/parallel/test-strace-openat-openssl.js
|
||||
@@ -18,6 +18,7 @@ if (spawnSync('strace').error !== undefi
|
||||
{
|
||||
const allowedOpenCalls = new Set([
|
||||
'/etc/ssl/openssl.cnf',
|
||||
+ '/etc/crypto-policies/back-ends/opensslcnf.config',
|
||||
]);
|
||||
const strace = spawn('strace', [
|
||||
'-f', '-ff',
|
||||
@@ -42,6 +43,10 @@ if (spawnSync('strace').error !== undefi
|
||||
if (file.match(/\/proc\/.+/) !== null) {
|
||||
return;
|
||||
}
|
||||
+ // skip icu data files
|
||||
+ if (file.match(/^\/usr\/share\/icu\/[0-9\.]+\/icudt.+\.dat$/) !== null) {
|
||||
+ return;
|
||||
+ }
|
||||
|
||||
assert(allowedOpenCalls.delete(file), `${file} is not in the list of allowed openat calls`);
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user