Skip to content

parallel/test-worker-process-cwd.js fails when node in root directory  #28193

Description

@ssample812
  • Version: Node 12.4.0
  • Platform: Ubuntu 18.04.2 LTS

After building Node.js from the source, I ran the test suite and an error for parallel/test-worker-process-cwd.js. The test attempts to move up a directory and throws an error if the cwd is unchanged. However, I had node in my root directory, so the lack of change was not indicative of a problem, but rather the correct result. When I moved node to a lower directory, the test passed. It seems to me that the test should either be changed to work when node is in the root, or skipped with a message stating this stipulation. I'm not very familiar with Node.js or its test suite, so I'm not sure the best implementation of this change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    testIssues and PRs related to Node.js core tests and test infrastructure.workerIssues and PRs related to the worker_threads module and Worker API.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions