diff --git a/test/parallel/test-child-process-exec-any-shells-windows.js b/test/parallel/test-child-process-exec-any-shells-windows.js index 8cdd03d7e510d5..0e78b665689720 100644 --- a/test/parallel/test-child-process-exec-any-shells-windows.js +++ b/test/parallel/test-child-process-exec-any-shells-windows.js @@ -23,10 +23,10 @@ const test = (shell) => { })); }; const testCopy = (shellName, shellPath) => { - // Copy the executable to a path with spaces, to ensure there are no issues + // Symlink the executable to a path with spaces, to ensure there are no issues // related to quoting of argv0 const copyPath = `${tmpPath}\\${shellName}`; - fs.copyFileSync(shellPath, copyPath); + fs.symlinkSync(shellPath, copyPath); test(copyPath); };