The C standard says the following in the specification of the remove function: "If the file is open, the behavior of the remove function is implementation-defined". The recently added test fopens a file, but does not close it before calling the std::remove function on this file, thus making this test dependent on the type of filesystem used for running the test suite. This patch adds the missing std::fclose call. BTW, it's a good practice of clean programming.
Details
Details
Diff Detail
Diff Detail
- Repository
- rCXX libc++
Event Timeline
Comment Actions
BTW, it's a good practice of clean programming.
Indeed, this was just a mistake on my part. Thanks for fixing.