Skip to content

test: normalize location test-worker-process-cwd.js runs tests

Rodrigo Muino Tomonari requested to merge github/fork/ssample812/nodefix into master

This change sets the process' directory to __dirname in order to normalize where the test is ran. This addresses the situation that occurs when node is located in the root, and moving up a directory results in the same directory. In that case, an error was thrown because the test interpreted this as a failed directory change.

Fixes: https://github.com/nodejs/node/issues/28193

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading