From e1133ed785fd06393119701c5a1d1533fe2bd690 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Wed, 25 Feb 2026 15:17:58 +0000 Subject: [PATCH] test: skip strace test with shared openssl `parallel/test-strace-openat-openssl` was added to check explicitly for a list of known files that would be opened for a set workload (`require("crypto")`). This is not reliable when Node.js is linked to an external/shared OpenSSL library (e.g. it might be configured to load configuration files from a different default location and/or load more than one configuration file) so skip this test when Node.js is built in that way. --- test/parallel/test-strace-openat-openssl.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/parallel/test-strace-openat-openssl.js b/test/parallel/test-strace-openat-openssl.js index 234c12f126f093..399c1db443f9f0 100644 --- a/test/parallel/test-strace-openat-openssl.js +++ b/test/parallel/test-strace-openat-openssl.js @@ -11,6 +11,9 @@ if (!common.isLinux) common.skip('linux only'); if (common.isASan) common.skip('strace does not work well with address sanitizer builds'); +if (process.config.variables.node_shared_openssl) { + common.skip('external shared openssl may open other files'); +} if (spawnSync('strace').error !== undefined) { common.skip('missing strace'); }