diff --git a/test/common/index.mjs b/test/common/index.mjs index 5fa3c56035e444..b252f2dc4aac5e 100644 --- a/test/common/index.mjs +++ b/test/common/index.mjs @@ -26,7 +26,7 @@ const { isDumbTerminal, isFreeBSD, isIBMi, - isInsideCWDWithUnusualChars, + isInsideDirWithUnusualChars, isLinux, isLinuxPPCBE, isMainThread, @@ -82,7 +82,7 @@ export { isDumbTerminal, isFreeBSD, isIBMi, - isInsideCWDWithUnusualChars, + isInsideDirWithUnusualChars, isLinux, isLinuxPPCBE, isMainThread, diff --git a/test/parallel/test-fs-cp.mjs b/test/parallel/test-fs-cp.mjs index d49dc66efc3870..f384cb9e3c4482 100644 --- a/test/parallel/test-fs-cp.mjs +++ b/test/parallel/test-fs-cp.mjs @@ -738,7 +738,7 @@ if (!isWindows && !isInsideDirWithUnusualChars) { } // It returns an error if attempt is made to copy socket. -if (!isWindows && !isInsideCWDWithUnusualChars) { +if (!isWindows && !isInsideDirWithUnusualChars) { const src = nextdir(); mkdirSync(src); const dest = nextdir(); diff --git a/test/parallel/test-inspector-strip-types.js b/test/parallel/test-inspector-strip-types.js index 8c40f06abc9198..ff6313a6eb2b21 100644 --- a/test/parallel/test-inspector-strip-types.js +++ b/test/parallel/test-inspector-strip-types.js @@ -35,7 +35,7 @@ async function runTest() { return notification.params.url === scriptPath || notification.params.url === scriptURL.href; }); // Verify that the script has a sourceURL, hinting that it is a generated source. - assert(scriptParsed.params.hasSourceURL || common.isInsideCWDWithUnusualChars); + assert(scriptParsed.params.hasSourceURL || common.isInsideDirWithUnusualChars); await session.waitForPauseOnStart(); await session.runToCompletion(); diff --git a/test/parallel/test-startup-empty-regexp-statics.js b/test/parallel/test-startup-empty-regexp-statics.js index d2e2339e77bd6d..6cb9c50a521f1d 100644 --- a/test/parallel/test-startup-empty-regexp-statics.js +++ b/test/parallel/test-startup-empty-regexp-statics.js @@ -2,7 +2,7 @@ const common = require('../common'); -if (common.isInsideCWDWithUnusualChars) { +if (common.isInsideDirWithUnusualChars) { common.skip('expected failure'); } diff --git a/test/parallel/test-startup-empty-regexp-statics.mjs b/test/parallel/test-startup-empty-regexp-statics.mjs index 85cbaf0d2a21f2..1771bfd6530369 100644 --- a/test/parallel/test-startup-empty-regexp-statics.mjs +++ b/test/parallel/test-startup-empty-regexp-statics.mjs @@ -4,7 +4,7 @@ import common from '../common/index.js'; import assert from 'node:assert'; -if (!common.isInsideCWDWithUnusualChars) { +if (!common.isInsideDirWithUnusualChars) { assert.strictEqual(RegExp.$_, ''); assert.strictEqual(RegExp.$0, undefined); assert.strictEqual(RegExp.$1, '');