Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
Mesosphere Sprint 31
-
1
Description
libprocess's IOTest.BufferedRead writes to the current directory. This is bad for a number of reasons, e.g.,
- should the test fail data might be leaked to random locations,
- the test cannot be executed from a write-only directory, or
- executing the same test in parallel would race on the existence of the created file, and show bogus behavior.
The test should probably be executed from a temporary directory, e.g., via stout's TemporaryDirectoryTest fixture.