Skip to content
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

Closed
wants to merge 1 commit into from
Closed

test: fs.link() on same device #4859

wants to merge 1 commit into from

Conversation

drewfish
Copy link
Contributor

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).

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).
@drewfish
Copy link
Contributor Author

BTW this PR is onto the v4.x branch since that's primarily what I'm trying to build/test, but I can submit a separate PR for master if desired.

@mscdex
Copy link
Contributor

mscdex commented Jan 25, 2016

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.

@mscdex mscdex added fs Issues and PRs related to the fs subsystem / file system. test Issues and PRs related to the tests. labels Jan 25, 2016
@drewfish
Copy link
Contributor Author

OK thanks, I'll submit a PR on master (and then we can figure out what to do with this PR).

@mscdex
Copy link
Contributor

mscdex commented Jan 25, 2016

Closing this in favor of #4861.

@mscdex mscdex closed this Jan 25, 2016
@drewfish drewfish deleted the hardlink-same-device branch January 26, 2016 18:13
This was referenced Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fs Issues and PRs related to the fs subsystem / file system. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants