From a51f2e11157aa9d616196b1f5748ef142e5d6242b0f7912d4a9872d5b2fb007e Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Fri, 5 May 2023 11:14:52 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs20?expand=0&rev=7 --- test_strace.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 test_strace.patch diff --git a/test_strace.patch b/test_strace.patch new file mode 100644 index 0000000..e62ff6a --- /dev/null +++ b/test_strace.patch @@ -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`); + });