| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
fix writefile with fd so that it'll close the fds that is uses during the test.
Sorry, something went wrong.
There was a problem hiding this comment.
Would it be more "correct" to wrap the expected-to-fail writeFile() calls in a try-finally block and close the fd in the finally block?
Sorry, something went wrong.
What I did was definitely wrong for the sync write, as if one of those asserts fails I would miss registering the beforeExit. For the other paths - I think that its simpler to push the fds into an array, because everything is async and I would need to make sure that all of the paths are covered. |
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
|
Fast-track has been requested by @targos. Please 👍 to approve. |
Sorry, something went wrong.
fix writefile with fd so that it'll close the fds that is uses during the test. PR-URL: #38820 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
fix writefile with fd so that it'll close the fds that is uses during the test. PR-URL: #38820 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
fix writefile with fd so that it'll close the fds that is uses during the test. PR-URL: #38820 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
fix writefile with fd so that it'll close the fds that is uses during the test. PR-URL: #38820 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
fix writefile with fd so that it'll close the fds that is uses during the test. PR-URL: #38820 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
| Back | FazBrowse Home | New Git URL |
Fix writefile with fd so that it'll close the fds that it uses during the test, as it breaks the build on Windows, after #38684