-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: fs.link() on same device #4859
Conversation
If `NODE_TEST_DIR` is set to a device different than the location of the test files (where this repo is checked out), then the parallel/test-fs-link.js test will fail with `EXDEV: cross-device link not permitted`. The code works fine (and is in fact throwing an error as desired) but the test fails. This commit first copies the "source" file to the same directory as the "destination" (where the hardlink will be created).
BTW this PR is onto the |
Typically PRs should always be targeting master. Once they land there, a collaborator will cherry-pick necessary commits back to versioned branches. If the problem doesn't exist on master, then it's usually (if feasible) just a matter of finding the existing commit in master to backport. |
OK thanks, I'll submit a PR on master (and then we can figure out what to do with this PR). |
Closing this in favor of #4861. |
If
NODE_TEST_DIR
is set to a device different than the location of the testfiles (where this repo is checked out), then the parallel/test-fs-link.js
test will fail with
EXDEV: cross-device link not permitted
. The code worksfine (and is in fact throwing an error as desired) but the test fails.
This commit first copies the "source" file to the same directory as the
"destination" (where the hardlink will be created).