Skip to content

test: validate fs.rename() when NODE_TEST_DIR on separate mount

Rodrigo Muino Tomonari requested to merge github/fork/drewfish/extemp into master

When testing fs.rename() of an non-existent file, use a destination path which is in the same directory. Otherwise we might trigger an EXDEV error if NODE_TEST_DIR is a separate device than the current working directory.

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

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Merge request reports

Loading