benchmark: fix fs\bench-realpathSync.js#11904
Closed
vsemozhetbyt wants to merge 1 commit intonodejs:masterfrom
vsemozhetbyt:bench-realpathSync
Closed
benchmark: fix fs\bench-realpathSync.js#11904vsemozhetbyt wants to merge 1 commit intonodejs:masterfrom vsemozhetbyt:bench-realpathSync
vsemozhetbyt wants to merge 1 commit intonodejs:masterfrom
vsemozhetbyt:bench-realpathSync
Conversation
Make it call-site-cwd-independent.
jasnell
approved these changes
Mar 17, 2017
Contributor
|
I've been running that benchmark quite a bit lately and haven't had problems running it outside of the benchmark/fs/ directory, including via benchmark/compare.js. How are you triggering the error exactly? |
Contributor
Author
|
Contributor
Author
|
Also: |
addaleax
approved these changes
Mar 19, 2017
3 tasks
Contributor
Author
Contributor
Author
|
@mscdex Is it OK to land this or should I provide more info? |
Contributor
|
It's fine by me I guess. |
Contributor
Author
|
Landed in ab2d49b |
vsemozhetbyt
added a commit
that referenced
this pull request
Mar 21, 2017
Make it call-site-cwd-independent. PR-URL: #11904 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
jungx098
pushed a commit
to jungx098/node
that referenced
this pull request
Mar 21, 2017
Make it call-site-cwd-independent. PR-URL: nodejs#11904 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Contributor
|
Not a big thing, but I'd just like to note for future reference that forward slashes are preferable in paths. |
Contributor
Author
|
@seishun Thank you. Sorry. |
MylesBorins
pushed a commit
that referenced
this pull request
Mar 28, 2017
Make it call-site-cwd-independent. PR-URL: #11904 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Merged
Contributor
|
This does not land cleanly in LTS. Please feel free to manually backport. Please also feel free to replace do-not-land if it is being backported edit: nvm it lands 🎉 |
MylesBorins
pushed a commit
that referenced
this pull request
Apr 18, 2017
Make it call-site-cwd-independent. PR-URL: #11904 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
MylesBorins
pushed a commit
that referenced
this pull request
Apr 19, 2017
Make it call-site-cwd-independent. PR-URL: #11904 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Merged
andrew749
pushed a commit
to michielbaird/node
that referenced
this pull request
Jul 19, 2017
Make it call-site-cwd-independent. PR-URL: nodejs/node#11904 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
benchmark, fs
fs\bench-realpathSync.jsruns safely only if itscwdis its__dirname. In other cases, it throwsENOENT: no such file or directory. This commit makes it callable from any place (including being a part of thefssuite launched from any directory).